mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
+ Fixed dyn. loading for mysql 5.0
git-svn-id: trunk@2023 -
This commit is contained in:
parent
3db35349ec
commit
4a94fc2ccd
@ -495,14 +495,12 @@ uses
|
||||
|
||||
function get_tty_password(opt_message:Pchar):Pchar;cdecl;external mysqllib name 'get_tty_password';
|
||||
function mysql_errno_to_sqlstate(mysql_errno:dword):Pchar;cdecl;external mysqllib name 'mysql_errno_to_sqlstate';
|
||||
{$ENDIF}
|
||||
|
||||
{ Some other useful functions }
|
||||
{$IFDEF mysql50}
|
||||
function modify_defaults_file(file_location:Pchar; option:Pchar; option_value:Pchar; section_name:Pchar; remove_option:longint):longint;cdecl;external mysqllib name 'load_defaults';
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF LinkDynamically}
|
||||
function load_defaults(conf_file:Pchar; groups:PPchar; argc:Plongint; argv:PPPchar):longint;cdecl;external mysqllib name 'load_defaults';
|
||||
function my_init:my_bool;cdecl;external mysqllib name 'my_init';
|
||||
function my_thread_init:my_bool;cdecl;external mysqllib name 'my_thread_init';
|
||||
@ -1452,12 +1450,14 @@ uses
|
||||
|
||||
function mysql_reload(mysql : PMySQL) : longint;
|
||||
|
||||
{$IFNDEF LinkDynamically}
|
||||
{$ifdef USE_OLD_FUNCTIONS}
|
||||
function mysql_connect(mysql:PMYSQL; host:Pchar; user:Pchar; passwd:Pchar):PMYSQL;extdecl;external External_library name 'mysql_connect';
|
||||
function mysql_create_db(mysql:PMYSQL; DB:Pchar):longint;extdecl;external External_library name 'mysql_create_db';
|
||||
function mysql_drop_db(mysql:PMYSQL; DB:Pchar):longint;extdecl;external External_library name 'mysql_drop_db';
|
||||
function mysql_reload(mysql : PMySQL) : longint;
|
||||
{$endif}
|
||||
{$endif}
|
||||
|
||||
{$define HAVE_MYSQL_REAL_CONNECT}
|
||||
{ The following functions are mainly exported because of mysqlbinlog;
|
||||
|
Loading…
Reference in New Issue
Block a user