summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-09-22 10:35:15 +0300
committermonty@mashka.mysql.fi <>2002-09-22 10:35:15 +0300
commit6aef4237d7a990618d9a525b0918e5416b7f62b3 (patch)
tree87e7f602b563d9a1ad9076e0470e9668a28469d5 /client
parent8a5ef8dc0ca86a8ce9fa082e6931193c38d5bb5e (diff)
downloadmariadb-git-6aef4237d7a990618d9a525b0918e5416b7f62b3.tar.gz
Fixed bug in previous patch when using a libc with static nss
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 33cbcbd2f6b..7d9ecda12e3 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -40,7 +40,7 @@
#include <signal.h>
#include <violite.h>
-const char *VER= "12.13";
+const char *VER= "12.14";
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
@@ -476,7 +476,8 @@ static struct my_option my_long_options[] =
{"ignore-space", 'i', "Ignore space after function names.", 0, 0, 0,
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
{"local-infile", OPT_LOCAL_INFILE, "Enable/disable LOAD DATA LOCAL INFILE.",
- 0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
+ (gptr*) &opt_local_infile,
+ (gptr*) &opt_local_infile, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
{"no-beep", 'b', "Turn off beep on error.", (gptr*) &opt_nobeep,
(gptr*) &opt_nobeep, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"host", 'h', "Connect to host.", (gptr*) &current_host,
@@ -609,7 +610,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break;
case OPT_LOCAL_INFILE:
using_opt_local_infile=1;
- opt_local_infile= test(!argument || atoi(argument)>0);
break;
case OPT_TEE:
if (argument == disabled_my_option)