Patch for ZPlainMySql5.pas

Code patches written by our users to solve certain "problems" that were not solved, yet.

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
raul.ferriz
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 05.02.2010, 17:41

Patch for ZPlainMySql5.pas

Post by raul.ferriz »

At linux systems (or at least at Debian) libmysqlclient.so.16 is MySQL 5.1 library. This patch allows connect to this library.

--- zeosdbo-6.6.6-old_stable/src/plain/ZPlainMySql5.pas
+++ ZEOSDBO-6.6.6-stable/src/plain/ZPlainMySql5.pas
@@ -80,6 +80,7 @@
WINDOWS_50_DLL_LOCATION_EMBEDDED = 'libmysqld50.dll';
WINDOWS_51_DLL_LOCATION_EMBEDDED = 'libmysqld51.dll';
LINUX1_DLL_LOCATION = 'libmysqlclient.so.15';
+ LINUX2_DLL_LOCATION = 'libmysqlclient.so.16';

{ General Declarations }
// PROTOCOL_VERSION = 10;
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

I did add this to testing branch already. It will move to 6.6-patches in due time.

Mark
Image
Post Reply