diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-02-03 19:28:40 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-02-03 19:28:40 +0300 |
commit | f62f1a528b7154e9ffdc61cc17fb629fa6dd5583 (patch) | |
tree | 1c4a1b44a1c27efa75b6d35089126bc9d68eebcf /sql | |
parent | 31ba3bf5cb51ed8ccc7f2d6c05b92e18794889a0 (diff) | |
parent | 632cf4c5023ca8e714c5e250662ece59678f7c59 (diff) | |
download | mariadb-git-f62f1a528b7154e9ffdc61cc17fb629fa6dd5583.tar.gz |
Manual merge from mysql-5.1-bugteam.
Conflicts:
- sql/mysqld.cc
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 57a00a3f4d0..90b6f3fe357 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -5769,7 +5769,8 @@ enum options_mysqld OPT_SYNC_RELAY_LOG, OPT_SYNC_RELAY_LOG_INFO, OPT_SYNC_MASTER_INFO, - OPT_BINLOG_DIRECT_NON_TRANS_UPDATE + OPT_BINLOG_DIRECT_NON_TRANS_UPDATE, + OPT_DEFAULT_CHARACTER_SET_OLD }; @@ -5895,7 +5896,8 @@ struct my_option my_long_options[] = {"debug", '#', "Debug log.", (uchar**) &default_dbug_option, (uchar**) &default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0}, #endif - {"default-character-set", 'C', "Set the default character set (deprecated option, use --character-set-server instead).", + {"default-character-set", OPT_DEFAULT_CHARACTER_SET_OLD, + "Set the default character set (deprecated option, use --character-set-server instead).", (uchar**) &default_character_set_name, (uchar**) &default_character_set_name, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 }, {"default-collation", OPT_DEFAULT_COLLATION_OLD, "Set the default collation (deprecated option, use --collation-server instead).", @@ -8022,8 +8024,12 @@ mysqld_get_one_option(int optid, case 'b': strmake(mysql_home,argument,sizeof(mysql_home)-1); break; + case OPT_DEFAULT_CHARACTER_SET_OLD: // --default-character-set + WARN_DEPRECATED(NULL, VER_CELOSIA, + "--default-character-set", + "--character-set-server"); + /* Fall through */ case 'C': - WARN_DEPRECATED(NULL, VER_CELOSIA, "--default-character-set", "--character-set-server"); if (default_collation_name == compiled_default_collation_name) default_collation_name= 0; break; |