diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-01-11 16:10:51 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-01-11 16:10:51 +0300 |
commit | 724caa519d92a02760de520153261a841ee626d6 (patch) | |
tree | 96e462dddffdd80b64ccdfa08dc6e63ef23e7956 /libmysqld | |
parent | 2ac6690200b0182bff6d9cda7f8d624b3cb4a3bb (diff) | |
parent | 3d915225611a921fad03934e58bf281b48fc15b0 (diff) | |
download | mariadb-git-724caa519d92a02760de520153261a841ee626d6.tar.gz |
Auto-merge from mysql-next-mr.
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 2a425edb379..d56ada00266 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -501,7 +501,19 @@ int init_embedded_server(int argc, char **argv, char **groups) */ logger.init_base(); - if (init_common_variables("my", *argcp, *argvp, (const char **)groups)) + orig_argc= *argcp; + orig_argv= *argvp; + load_defaults("my", (const char **)groups, argcp, argvp); + defaults_argc= *argcp; + defaults_argv= *argvp; + remaining_argc= argc; + remaining_argv= argv; + + /* Must be initialized early for comparison of options name */ + system_charset_info= &my_charset_utf8_general_ci; + sys_var_init(); + + if (init_common_variables()) { mysql_server_end(); return 1; |