Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 104
    • Issues 104
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #3761
Closed
Open
Issue created Jul 13, 2004 by Peter Bortas@zinoOwner

MySQL 4.1.3 changes mysql_shutdown() function

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3761

Reference: http://dev.mysql.com/doc/mysql/en/mysql_shutdown.html

Reported by Dan Nelson dnelson_1901@yahoo.com

The 4.1.3 release of mysql adds another argument to mysql_shutdown(). Currently the only allowed value is SHUTDOWN_DEFAULT. I assume later versions will add other options, but since there is currently only one, this patch should be sufficient to allow pike to build against both old and new versions.

===================================================================
RCS file: /cvs/Pike/7.6/src/modules/Mysql/mysql.c,v
retrieving revision 1.81
diff -u -r1.81 mysql.c
--- mysql.c     19 Mar 2004 14:49:44 -0000      1.81
+++ mysql.c     13 Jul 2004 16:43:47 -0000
@@ -59,6 +59,10 @@
 #endif /* HAVE_MYSQL_ERRMSG_H */
 #endif /* HAVE_ERRMGS_H */

+#if MYSQL_VERSION_ID >= 40103
+/* 4.1.3 added an extra shutdown_level argument */
+#define mysql_shutdown(m) mysql_shutdown(m, SHUTDOWN_DEFAULT);
+#endif

#endif /* HAVE_MYSQL */

Assignee
Assign to
Time tracking