freebsd-ports/databases/mysqlcc/files/patch-shared-src-CMySQL.cpp
Sergey Matveychuk 05a276a639 Add patch for fixing work with MySQL 4.1.3 and 5.0.1.
PR:		ports/70049
Submitted by:	Jie Gao <gaoj@cpsc.ucalgary.ca>
Approved by:	maintainer
2004-08-21 09:09:45 +00:00

14 lines
390 B
C++

--- shared/src/CMySQL.cpp.orig Thu Aug 5 12:26:14 2004
+++ shared/src/CMySQL.cpp Thu Aug 5 12:29:53 2004
@@ -451,7 +451,11 @@
if (!isConnected())
return false;
+#if ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 )
+ if (mysql_shutdown(mysql,SHUTDOWN_DEFAULT) != 0)
+#else
if (mysql_shutdown(mysql) != 0)
+#endif
{
if (emiterror)
emitError();