aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2004-08-21 17:09:45 +0800
committersem <sem@FreeBSD.org>2004-08-21 17:09:45 +0800
commitbcd62d918cedea3169bffb0029f6a60b519077bc (patch)
treeaa7682cb8f39a0adc414289c7b0518802007b15e /databases
parentce77a4c8c071f6b844979573bf92cd570c4ad672 (diff)
downloadfreebsd-ports-gnome-bcd62d918cedea3169bffb0029f6a60b519077bc.tar.gz
freebsd-ports-gnome-bcd62d918cedea3169bffb0029f6a60b519077bc.tar.zst
freebsd-ports-gnome-bcd62d918cedea3169bffb0029f6a60b519077bc.zip
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
Diffstat (limited to 'databases')
-rw-r--r--databases/mysqlcc/files/patch-shared-src-CMySQL.cpp14
1 files changed, 14 insertions, 0 deletions
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 000000000000..694f63b9e791
--- /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();