diff options
author | unknown <jcole@mugatu.jcole.us> | 2004-03-22 19:58:49 -0500 |
---|---|---|
committer | unknown <jcole@mugatu.jcole.us> | 2004-03-22 19:58:49 -0500 |
commit | 03f5ebf1b01b8e7c91cfe06a995ff76eab6c92b1 (patch) | |
tree | 809c07d307c0ec006017f9354e45bf2a1e6443f3 /sql-common | |
parent | b4312dc5e0d27f6718331ff6f74b0338ab7833ef (diff) | |
download | mariadb-git-03f5ebf1b01b8e7c91cfe06a995ff76eab6c92b1.tar.gz |
Added LOCAL INFILE callback function support.
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 27492e8d405..b94f3e1de38 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1358,12 +1358,15 @@ mysql_init(MYSQL *mysql) Only enable LOAD DATA INFILE by default if configured with --enable-local-infile */ + #if defined(ENABLED_LOCAL_INFILE) && !defined(MYSQL_SERVER) mysql->options.client_flag|= CLIENT_LOCAL_FILES; #endif + #ifdef HAVE_SMEM mysql->options.shared_memory_base_name= (char*) def_shared_memory_base_name; #endif + mysql->options.methods_to_use= MYSQL_OPT_GUESS_CONNECTION; return mysql; } @@ -2282,7 +2285,7 @@ get_info: #ifdef MYSQL_CLIENT if (field_count == NULL_LENGTH) /* LOAD DATA LOCAL INFILE */ { - int error=send_file_to_server(mysql,(char*) pos); + int error=handle_local_infile(mysql,(char*) pos); if ((length=net_safe_read(mysql)) == packet_error || error) DBUG_RETURN(1); goto get_info; /* Get info packet */ |