* real_connect "db" parameter added which was added in 3.22. Mants 15041, but dled mysql 3.23 to verify.

git-svn-id: trunk@14264 -
This commit is contained in:
marco 2009-11-24 11:14:12 +00:00
parent 5fa1e1cee2
commit 71c32214a1
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,6 @@
unit mysql3;
{$undef use_mysql_321} { if undefined, use mysql 3.23 interface }
{
Import unit for the mysql header files.
@ -60,6 +59,7 @@ Function mysql_error(mysql : PMYSQL) : pchar; extdecl; external mysqllib;
function mysql_init(mysql: PMYSQL) : PMYSQL;extdecl; external mysqllib name 'mysql_init';
function mysql_connect (mysql : PMYSQL; host,user,passwd: pchar) : PMYSQL;extdecl; external mysqllib name 'mysql_connect';
function mysql_real_connect (mysql : PMYSQL; const host,user,passwd : pchar;
{$ifndef use_mysql_321} const db : Pchar; {$endif} // strictly speaking 3.22+ not 3.21+
port : cardinal;
unix_socket : pchar;
clientflag : cardinal) : PMYSQL;extdecl; external mysqllib;

View File

@ -52,6 +52,7 @@ var
mysql_init : function(mysql: PMYSQL) : PMYSQL;extdecl;
mysql_connect : function(mysql : PMYSQL; host,user,passwd: pchar) : PMYSQL;extdecl;
mysql_real_connect : function(mysql : PMYSQL; const host,user,passwd : pchar;
{$ifndef use_mysql_321} const db : Pchar; {$endif} // strictly speaking 3.22+ not 3.21+
port : cardinal;
unix_socket : pchar;
clientflag : cardinal) : PMYSQL;extdecl;