diff options
author | jcole@mugatu.jcole.us <> | 2004-03-22 19:58:49 -0500 |
---|---|---|
committer | jcole@mugatu.jcole.us <> | 2004-03-22 19:58:49 -0500 |
commit | 15cc92cacbaea69efda90bf5d4dae0938d87a933 (patch) | |
tree | 809c07d307c0ec006017f9354e45bf2a1e6443f3 /include | |
parent | de09e55b8bb7495c8d5cddeed28eb28177a39aa5 (diff) | |
download | mariadb-git-15cc92cacbaea69efda90bf5d4dae0938d87a933.tar.gz |
Added LOCAL INFILE callback function support.
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mysql.h b/include/mysql.h index e14381a94de..d922b552e38 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -185,6 +185,12 @@ struct st_mysql_options { char *client_ip; /* Refuse client connecting to server if it uses old (pre-4.1.1) protocol */ my_bool secure_auth; + + /* function pointers for local infile support */ + int (*local_infile_init)(void **, char *); + int (*local_infile_read)(void *, char *, uint); + int (*local_infile_end)(void *); + int (*local_infile_error)(void *, char *, uint); }; enum mysql_status @@ -384,6 +390,21 @@ my_bool STDCALL mysql_slave_query(MYSQL *mysql, const char *q, my_bool STDCALL mysql_slave_send_query(MYSQL *mysql, const char *q, unsigned long length); +/* local infile support */ + +#define LOCAL_INFILE_ERROR_LEN 512 + +int +mysql_set_local_infile_handler(MYSQL *mysql, + int (*local_infile_init)(void **, char *), + int (*local_infile_read)(void *, char *, uint), + int (*local_infile_end)(void *), + int (*local_infile_error)(void *, char *, uint)); + +void +mysql_set_local_infile_default(MYSQL *mysql); + + /* enable/disable parsing of all queries to decide if they go on master or slave |