From 32d0b695031f281aa4079838785c4c770d7cf30a Mon Sep 17 00:00:00 2001 From: "monty@mysql.com" <> Date: Wed, 28 Apr 2004 20:19:50 +0300 Subject: Allow one to send empty strings with mysql_stmt_send_long_data() mysql_stmt_reset() now resets param->long_data_used Abort if --defaults-file=path-name uses a non-existing file (Bug #3413) Fixed problem with symlink test (bug in 4.1.2) --- mysys/default.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mysys/default.c') diff --git a/mysys/default.c b/mysys/default.c index d09b0dd97af..af67520322f 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -166,6 +166,12 @@ int load_defaults(const char *conf_file, const char **groups, if ((error= search_default_file(&args, &alloc, "", forced_default_file, "", &group)) < 0) goto err; + if (error > 0) + { + fprintf(stderr, "Could not open required defaults file: %s\n", + forced_default_file); + goto err; + } } else if (dirname_length(conf_file)) { -- cgit v1.2.1