diff options
author | monty@mysql.com <> | 2004-10-07 12:51:32 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-10-07 12:51:32 +0300 |
commit | 1dd4bd5f6cd2f7bbbc3f01ae0758173b889f3024 (patch) | |
tree | c40a3078a450f8748d8f07f48bdbf35e59d7f9a0 /client/mysqlimport.c | |
parent | 01232b2c521e7715502197421f56f7294ed5a4ef (diff) | |
parent | 9954abef020742904080c9e69e4789a362ac04f5 (diff) | |
download | mariadb-git-1dd4bd5f6cd2f7bbbc3f01ae0758173b889f3024.tar.gz |
Merge mysql.com:/home/my/mysql-4.0 into mysql.com:/home/my/mysql-4.1
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r-- | client/mysqlimport.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index c68d2d9f724..aaf04b1bc3e 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -267,10 +267,8 @@ static int write_to_table(char *filename, MYSQL *sock) DBUG_ENTER("write_to_table"); DBUG_PRINT("enter",("filename: %s",filename)); - local_file= sock->unix_socket == 0 || opt_local_file; - fn_format(tablename, filename, "", "", 1 | 2); /* removes path & ext. */ - if (local_file) + if (! opt_local_file) strmov(hard_path,filename); else my_load_path(hard_path, filename, NULL); /* filename includes the path */ @@ -289,7 +287,7 @@ static int write_to_table(char *filename, MYSQL *sock) to_unix_path(hard_path); if (verbose) { - if (local_file) + if (opt_local_file) fprintf(stdout, "Loading data from LOCAL file: %s into %s\n", hard_path, tablename); else @@ -298,7 +296,7 @@ static int write_to_table(char *filename, MYSQL *sock) } sprintf(sql_statement, "LOAD DATA %s %s INFILE '%s'", opt_low_priority ? "LOW_PRIORITY" : "", - local_file ? "LOCAL" : "", hard_path); + opt_local_file ? "LOCAL" : "", hard_path); end= strend(sql_statement); if (replace) end= strmov(end, " REPLACE"); |