From bcd62d918cedea3169bffb0029f6a60b519077bc Mon Sep 17 00:00:00 2001 From: sem Date: Sat, 21 Aug 2004 09:09:45 +0000 Subject: Add patch for fixing work with MySQL 4.1.3 and 5.0.1. PR: ports/70049 Submitted by: Jie Gao Approved by: maintainer --- databases/mysqlcc/files/patch-shared-src-CMySQL.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 databases/mysqlcc/files/patch-shared-src-CMySQL.cpp (limited to 'databases/mysqlcc') diff --git a/databases/mysqlcc/files/patch-shared-src-CMySQL.cpp b/databases/mysqlcc/files/patch-shared-src-CMySQL.cpp new file mode 100644 index 0000000..694f63b --- /dev/null +++ b/databases/mysqlcc/files/patch-shared-src-CMySQL.cpp @@ -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(); -- cgit v1.1