mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:06:18 +02:00
* 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:
parent
5fa1e1cee2
commit
71c32214a1
@ -2,7 +2,6 @@
|
|||||||
unit mysql3;
|
unit mysql3;
|
||||||
|
|
||||||
{$undef use_mysql_321} { if undefined, use mysql 3.23 interface }
|
{$undef use_mysql_321} { if undefined, use mysql 3.23 interface }
|
||||||
|
|
||||||
{
|
{
|
||||||
Import unit for the mysql header files.
|
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_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_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;
|
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;
|
port : cardinal;
|
||||||
unix_socket : pchar;
|
unix_socket : pchar;
|
||||||
clientflag : cardinal) : PMYSQL;extdecl; external mysqllib;
|
clientflag : cardinal) : PMYSQL;extdecl; external mysqllib;
|
||||||
|
@ -52,6 +52,7 @@ var
|
|||||||
mysql_init : function(mysql: PMYSQL) : PMYSQL;extdecl;
|
mysql_init : function(mysql: PMYSQL) : PMYSQL;extdecl;
|
||||||
mysql_connect : function(mysql : PMYSQL; host,user,passwd: pchar) : PMYSQL;extdecl;
|
mysql_connect : function(mysql : PMYSQL; host,user,passwd: pchar) : PMYSQL;extdecl;
|
||||||
mysql_real_connect : function(mysql : PMYSQL; const host,user,passwd : pchar;
|
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;
|
port : cardinal;
|
||||||
unix_socket : pchar;
|
unix_socket : pchar;
|
||||||
clientflag : cardinal) : PMYSQL;extdecl;
|
clientflag : cardinal) : PMYSQL;extdecl;
|
||||||
|
Loading…
Reference in New Issue
Block a user