summaryrefslogtreecommitdiff
path: root/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc
blob: aa3f2567e80175651dee0da48d4aa304b14db887 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- mysqlcppapi/Connection.cc.orig	Wed Aug  4 23:15:58 2004
+++ mysqlcppapi/Connection.cc	Wed Aug  4 23:18:13 2004
@@ -211,9 +211,11 @@
 bool Connection::shutdown ()
 {
   check_connection_is_open();
-  
+#if  ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 )
+  bool suc = !(mysql_shutdown(m_sharedptr_connection.obj(),SHUTDOWN_DEFAULT));
+#else
   bool suc = !(mysql_shutdown(m_sharedptr_connection.obj()));
-
+#endif
   if (!suc)
     throw ex_BadQuery(error());