Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  5 Aug 2004 16:26:18 -0600
From:      "Jie Gao" <gaoj@cpsc.ucalgary.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70049: [patch] databases/mysqlcc -- broken with mysql 4.1.3 and 5.0.1
Message-ID:  <200408052226.i75MQIpi018864@imgw1.cpsc.ucalgary.ca>
Resent-Message-ID: <200408052230.i75MUMog085586@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70049
>Category:       ports
>Synopsis:       [patch] databases/mysqlcc -- broken with mysql 4.1.3 and 5.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 05 22:30:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jie Gao
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD aibsd-stable.cpsc.ucalgary.ca 4.10-STABLE FreeBSD 4.10-STABLE #0: Wed Aug 4 17:21:59 MDT 2004 root@aibsd-stable.cpsc.ucalgary.ca:/usr/obj/usr/src/sys/AIBSDSTABLE i386


	
>Description:
	
The latest beta and alpha version of MySQL, 4.1.3 and 5.0.1 respectively, have
changed mysql_shutdown() API. It requires 2 arguments now. This makes mysqlcc
broken with these versions of mysql.
>How-To-Repeat:
	
Install mysql41-client (4.1.3) and then make mysqlcc.
>Fix:

	
Put this patch to databases/mysqlcc/files

--- patch-shared-src-CMySQL.cpp begins here ---
--- 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();
--- patch-shared-src-CMySQL.cpp ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408052226.i75MQIpi018864>