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
This commit is contained in:
Sergey Matveychuk 2004-08-21 09:09:45 +00:00
parent 3abba306d9
commit 05a276a639
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116889

View File

@ -0,0 +1,14 @@
--- 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();