summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <rburnett@build.mysql.com>2004-10-06 22:03:20 +0200
committerunknown <rburnett@build.mysql.com>2004-10-06 22:03:20 +0200
commit1601646a8846c5246d803411fc349237bfdd998b (patch)
tree97858916305801dc5b119af50885f096b436c4db
parentfe46310640b081114f1d9f9be0e3f88f8fd7d926 (diff)
parentbb6fe04c938e0bfb2972baef551317cd4e9f313a (diff)
downloadmariadb-git-1601646a8846c5246d803411fc349237bfdd998b.tar.gz
Merge build.mysql.com:/home/bk/mysql-4.0
into build.mysql.com:/users/rburnett/mysql-4.0
-rw-r--r--client/mysqlimport.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index ca53b74c119..50c3a26a882 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -246,10 +246,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 */
@@ -268,7 +266,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
@@ -277,7 +275,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");