diff options
author | sasha@mysql.sashanet.com <> | 2002-02-07 15:29:46 -0700 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2002-02-07 15:29:46 -0700 |
commit | 6980a24e9de6dc84e3e0621377086a0673d98bc4 (patch) | |
tree | d9192c46a4eb4d83decc75bbeac94c01eba13040 /sql/sql_load.cc | |
parent | b9637dae053aa8525fd4bf8c2e6c55c35474edd2 (diff) | |
download | mariadb-git-6980a24e9de6dc84e3e0621377086a0673d98bc4.tar.gz |
fixes for slave backward compat
fixed bug in LOAD DATA FROM MASTER
fixed rpl000001.result
Slave now replicates 3.23 master, with the exception of LOAD DATA INFILE,
which is still buggy. Will push this one after the pull/merge
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index abc9fa5a121..899f2e20469 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -147,12 +147,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, if (read_file_from_client && (thd->client_capabilities & CLIENT_LOCAL_FILES)) { - char tmp [FN_REFLEN+1],*end; - DBUG_PRINT("info",("reading local file")); - tmp[0] = (char) 251; /* NULL_LENGTH */ - end=strnmov(tmp+1,ex->file_name,sizeof(tmp)-2); - (void) my_net_write(&thd->net,tmp,(uint) (end-tmp)); - (void) net_flush(&thd->net); + (void)net_request_file(&thd->net,ex->file_name); file = -1; } else |