A fork of mysql++ C++ API for MySQL

PR:		ports/70050
Submitted by:	Jie Gao <gaoj@cpsc.ucalgary.ca>
This commit is contained in:
Sergey Matveychuk
2004-08-27 18:40:15 +00:00
parent 1281878cbe
commit a47d0e4abd
8 changed files with 151 additions and 0 deletions
@@ -0,0 +1,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());