summaryrefslogtreecommitdiff
path: root/mysys/default.c
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-09-09 12:51:43 +0500
committerunknown <ramil@mysql.com>2005-09-09 12:51:43 +0500
commitaf05c8d303a09f7ef70017e63977c0f40e75159a (patch)
tree98136779b969a67a5385dae421715cb7a56c9682 /mysys/default.c
parent65ba93fda94e153ee66ed01824ae40296250e5ff (diff)
downloadmariadb-git-af05c8d303a09f7ef70017e63977c0f40e75159a.tar.gz
A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries).
mysql-test/mysql-test-run.pl: A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries). MYSQL_MY_PRINT_DEFAULTS added mysql-test/mysql-test-run.sh: A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries). MYSQL_MY_PRINT_DEFAULTS added mysys/default.c: A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries). Set defaults_extra_file as we use it widely.
Diffstat (limited to 'mysys/default.c')
-rw-r--r--mysys/default.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/default.c b/mysys/default.c
index bde7cbf2563..bca3ec0fed3 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -136,6 +136,9 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv,
if (! defaults_group_suffix)
defaults_group_suffix= getenv(STRINGIFY_ARG(DEFAULT_GROUP_SUFFIX_ENV));
+
+ if (forced_extra_defaults)
+ defaults_extra_file= forced_extra_defaults;
/*
We can only handle 'defaults-group-suffix' if we are called from