diff options
author | unknown <monty@mashka.mysql.fi> | 2003-11-18 17:28:00 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-11-18 17:28:00 +0200 |
commit | c05413175bbbe2ec715d28c5cd28542ceba3d7e2 (patch) | |
tree | b2829b6021df3f4b18bf81039b7bc065f4edb5b7 | |
parent | 6b671182125b2e3aa19cc65f0ecf1fbb5df194ad (diff) | |
download | mariadb-git-c05413175bbbe2ec715d28c5cd28542ceba3d7e2.tar.gz |
Delete duplicate error message names
include/mysqld_error.h:
Delete duplicate error names
include/sql_state.h:
Delete duplicate error names
myisam/ft_dump.c:
Delete wrong patch
myisam/myisamchk.c:
Delete wrong patch
mysql-test/r/query_cache.result:
Fix after deleting duplicated error messages
mysql-test/t/create.test:
Fix after deleting duplicated error messages
mysql-test/t/fulltext.test:
Fix after deleting duplicated error messages
mysql-test/t/key_cache.test:
Fix after deleting duplicated error messages
sql/share/czech/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/danish/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/dutch/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/english/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/estonian/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/french/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/german/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/greek/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/hungarian/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/italian/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/japanese/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/korean/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/norwegian-ny/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/norwegian/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/polish/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/portuguese/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/romanian/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/russian/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/serbian/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/slovak/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/spanish/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/swedish/errmsg.txt:
Fix after deleting duplicated error messages
sql/share/ukrainian/errmsg.txt:
Fix after deleting duplicated error messages
sql/sql_db.cc:
Fix after deleting duplicated error messages
sql/sql_parse.cc:
Fix after deleting duplicated error messages
sql/sql_table.cc:
Fix after deleting duplicated error messages
tests/client_test.c:
CLIENT_MULTI_QUERIES -> CLIENT_MULTI_STATEMENTS
35 files changed, 38 insertions, 115 deletions
diff --git a/include/mysqld_error.h b/include/mysqld_error.h index 79f089ed6c8..a6e23fbff3a 100644 --- a/include/mysqld_error.h +++ b/include/mysqld_error.h @@ -295,12 +295,9 @@ #define ER_BAD_SLAVE_UNTIL_COND 1276 #define ER_MISSING_SKIP_SLAVE 1277 #define ER_UNTIL_COND_IGNORED 1278 -#define ER_WRONG_NAME_FOR_TABLE 1279 -#define ER_WRONG_NAME_FOR_DATABASE 1280 -#define ER_WRONG_NAME_FOR_COLUMN 1281 -#define ER_WRONG_NAME_FOR_INDEX 1282 -#define ER_WRONG_NAME_FOR_CATALOG 1283 -#define ER_WARN_QC_RESIZE 1284 -#define ER_BAD_FT_COLUMN 1285 -#define ER_UNKNOWN_KEY_CACHE 1286 -#define ER_ERROR_MESSAGES 287 +#define ER_WRONG_NAME_FOR_INDEX 1279 +#define ER_WRONG_NAME_FOR_CATALOG 1280 +#define ER_WARN_QC_RESIZE 1281 +#define ER_BAD_FT_COLUMN 1282 +#define ER_UNKNOWN_KEY_CACHE 1283 +#define ER_ERROR_MESSAGES 284 diff --git a/include/sql_state.h b/include/sql_state.h index 31646ea7b6b..a514b1e59fc 100644 --- a/include/sql_state.h +++ b/include/sql_state.h @@ -159,8 +159,5 @@ ER_WARN_TOO_MANY_RECORDS, "01000", "", ER_WARN_NULL_TO_NOTNULL, "01000", "", ER_WARN_DATA_OUT_OF_RANGE, "01000", "", ER_WARN_DATA_TRUNCATED, "01000", "", -ER_WRONG_NAME_FOR_TABLE, "42000", "", -ER_WRONG_NAME_FOR_DATABASE, "42000", "", -ER_WRONG_NAME_FOR_COLUMN, "42000", "", ER_WRONG_NAME_FOR_INDEX, "42000", "", ER_WRONG_NAME_FOR_CATALOG, "42000", "", diff --git a/myisam/ft_dump.c b/myisam/ft_dump.c index 6aa5323d757..5591a6ddb3e 100644 --- a/myisam/ft_dump.c +++ b/myisam/ft_dump.c @@ -84,7 +84,6 @@ int main(int argc,char *argv[]) if (!(info=mi_open(argv[0],2,HA_OPEN_ABORT_IF_LOCKED))) goto err; - VOID(mi_extra(info, HA_EXTRA_SET_KEY_CACHE, dflt_keycache)); inx=atoi(argv[1]); *buf2=0; diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index 9f97f352d39..605baa14582 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -795,7 +795,6 @@ static int myisamchk(MI_CHECK *param, my_string filename) share->tot_locks-= share->r_locks; share->r_locks=0; raid_chunks=share->base.raid_chunks; - VOID(mi_extra(info, HA_EXTRA_SET_KEY_CACHE, dflt_keycache)); /* Skip the checking of the file if: diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result index b00680f0cbb..e668b9031cc 100644 --- a/mysql-test/r/query_cache.result +++ b/mysql-test/r/query_cache.result @@ -586,7 +586,7 @@ select * from t1; a set GLOBAL query_cache_size=1024; Warnings: -Warning 1284 Query cache failed to set size 1024, new query cache size is 0 +Warning 1281 Query cache failed to set size 1024, new query cache size is 0 show global variables like "query_cache_size"; Variable_name Value query_cache_size 0 @@ -594,7 +594,7 @@ select * from t1; a set GLOBAL query_cache_size=10240; Warnings: -Warning 1284 Query cache failed to set size 10240, new query cache size is 0 +Warning 1281 Query cache failed to set size 10240, new query cache size is 0 show global variables like "query_cache_size"; Variable_name Value query_cache_size 0 @@ -602,7 +602,7 @@ select * from t1; a set GLOBAL query_cache_size=20480; Warnings: -Warning 1284 Query cache failed to set size 20480, new query cache size is 0 +Warning 1281 Query cache failed to set size 20480, new query cache size is 0 show global variables like "query_cache_size"; Variable_name Value query_cache_size 0 @@ -610,7 +610,7 @@ select * from t1; a set GLOBAL query_cache_size=40960; Warnings: -Warning 1284 Query cache failed to set size 40960, new query cache size is 0 +Warning 1281 Query cache failed to set size 40960, new query cache size is 0 show global variables like "query_cache_size"; Variable_name Value query_cache_size 0 diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index 5d61d7b18f2..0c1280751bc 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -40,9 +40,9 @@ create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null -- error 1044,1 create table not_existing_database.test (a int); ---error 1279 +--error 1103 create table `a/a` (a int); ---error 1279 +--error 1103 create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int); --error 1059 create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int); @@ -66,13 +66,13 @@ create table test_$1.test2$ (a int); drop table test_$1.test2$; drop database test_$1; ---error 1279 +--error 1103 create table `` (a int); ---error 1279 +--error 1103 drop table if exists ``; ---error 1281 +--error 1166 create table t1 (`` int); ---error 1282 +--error 1279 create table t1 (i int, index `` (i)); # @@ -262,7 +262,7 @@ create table non_existing_database.t1 like t1; create table t3 like non_existing_table; --error 1050 create temporary table t3 like t1; ---error 1279 +--error 1103 create table t3 like `a/a`; drop table t1, t2, t3; drop table t3; diff --git a/mysql-test/t/fulltext.test b/mysql-test/t/fulltext.test index bc0afd53d6f..a0292740c8d 100644 --- a/mysql-test/t/fulltext.test +++ b/mysql-test/t/fulltext.test @@ -133,9 +133,9 @@ select * from t2 having MATCH inhalt AGAINST ('foobar'); # check of fulltext errors # ---error 1285 +--error 1282 CREATE TABLE t3 (t int(11),i text,fulltext tix (t,i)); ---error 1285 +--error 1282 CREATE TABLE t3 (t int(11),i text, j varchar(200) CHARACTER SET latin2, fulltext tix (i,j)); diff --git a/mysql-test/t/key_cache.test b/mysql-test/t/key_cache.test index dc9f9c9b18a..a3b8bca847d 100644 --- a/mysql-test/t/key_cache.test +++ b/mysql-test/t/key_cache.test @@ -99,7 +99,7 @@ explain select a from t2; select a from t2; # Test some error conditions ---error 1287 +--error 1283 cache index t1 in unknown_key_cache; cache index t1 keys (unknown_key) in keycache1; diff --git a/sql/share/czech/errmsg.txt b/sql/share/czech/errmsg.txt index dffaf98197f..c40765ebf94 100644 --- a/sql/share/czech/errmsg.txt +++ b/sql/share/czech/errmsg.txt @@ -291,9 +291,6 @@ character-set=latin2 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/danish/errmsg.txt b/sql/share/danish/errmsg.txt index ebf7a2c3f84..98540e1bd0a 100644 --- a/sql/share/danish/errmsg.txt +++ b/sql/share/danish/errmsg.txt @@ -285,9 +285,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/dutch/errmsg.txt b/sql/share/dutch/errmsg.txt index 7d94c907ae3..44c9399b821 100644 --- a/sql/share/dutch/errmsg.txt +++ b/sql/share/dutch/errmsg.txt @@ -293,9 +293,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/english/errmsg.txt b/sql/share/english/errmsg.txt index 891e23ad917..e4f7c27610b 100644 --- a/sql/share/english/errmsg.txt +++ b/sql/share/english/errmsg.txt @@ -282,9 +282,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL. Otherwise you will get problems if you get an unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/estonian/errmsg.txt b/sql/share/estonian/errmsg.txt index f6b416f49fb..dec488567ff 100644 --- a/sql/share/estonian/errmsg.txt +++ b/sql/share/estonian/errmsg.txt @@ -287,9 +287,6 @@ character-set=latin7 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/french/errmsg.txt b/sql/share/french/errmsg.txt index c6a47091d54..c41c927d539 100644 --- a/sql/share/french/errmsg.txt +++ b/sql/share/french/errmsg.txt @@ -282,9 +282,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/german/errmsg.txt b/sql/share/german/errmsg.txt index fe49d1c1e66..0425a709950 100644 --- a/sql/share/german/errmsg.txt +++ b/sql/share/german/errmsg.txt @@ -294,9 +294,6 @@ character-set=latin1 "Falscher Parameter oder falsche Kombination von Parametern fЭr START SLAVE UNTIL", "Es wird empfohlen, mit --skip-slave-start zu starten, wenn mit START SLAVE UNTIL eine Schritt-fЭr-Schritt-Replikation ausgefЭhrt wird. Ansonsten gibt es Probleme, wenn der Slave-Server unerwartet neu startet", "SQL-Thread soll nicht gestartet werden. Daher werden UNTIL-Optionen ignoriert", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/greek/errmsg.txt b/sql/share/greek/errmsg.txt index 3f6f2e5f5b2..3cf5bbf592d 100644 --- a/sql/share/greek/errmsg.txt +++ b/sql/share/greek/errmsg.txt @@ -282,9 +282,6 @@ character-set=greek "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/hungarian/errmsg.txt b/sql/share/hungarian/errmsg.txt index 7776655d0b9..f1b719ba716 100644 --- a/sql/share/hungarian/errmsg.txt +++ b/sql/share/hungarian/errmsg.txt @@ -284,9 +284,6 @@ character-set=latin2 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/italian/errmsg.txt b/sql/share/italian/errmsg.txt index dc4392a0ed8..ed39950e9f1 100644 --- a/sql/share/italian/errmsg.txt +++ b/sql/share/italian/errmsg.txt @@ -282,9 +282,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/japanese/errmsg.txt b/sql/share/japanese/errmsg.txt index 101c6a22430..9760cd3f9e8 100644 --- a/sql/share/japanese/errmsg.txt +++ b/sql/share/japanese/errmsg.txt @@ -284,9 +284,6 @@ character-set=ujis "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/korean/errmsg.txt b/sql/share/korean/errmsg.txt index 0337ad97a21..10eed3bb2de 100644 --- a/sql/share/korean/errmsg.txt +++ b/sql/share/korean/errmsg.txt @@ -282,9 +282,6 @@ character-set=euckr "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/norwegian-ny/errmsg.txt b/sql/share/norwegian-ny/errmsg.txt index 549961aef23..7149eea8b10 100644 --- a/sql/share/norwegian-ny/errmsg.txt +++ b/sql/share/norwegian-ny/errmsg.txt @@ -284,9 +284,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/norwegian/errmsg.txt b/sql/share/norwegian/errmsg.txt index f1ff1a15415..dc96d39f8dc 100644 --- a/sql/share/norwegian/errmsg.txt +++ b/sql/share/norwegian/errmsg.txt @@ -284,9 +284,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/polish/errmsg.txt b/sql/share/polish/errmsg.txt index f3c9c929c28..b2b2e52ad75 100644 --- a/sql/share/polish/errmsg.txt +++ b/sql/share/polish/errmsg.txt @@ -286,9 +286,6 @@ character-set=latin2 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/portuguese/errmsg.txt b/sql/share/portuguese/errmsg.txt index 3bbf1d5468f..c4a150d79bf 100644 --- a/sql/share/portuguese/errmsg.txt +++ b/sql/share/portuguese/errmsg.txt @@ -283,9 +283,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/romanian/errmsg.txt b/sql/share/romanian/errmsg.txt index 1222240621c..dce141da20a 100644 --- a/sql/share/romanian/errmsg.txt +++ b/sql/share/romanian/errmsg.txt @@ -286,9 +286,6 @@ character-set=latin2 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/russian/errmsg.txt b/sql/share/russian/errmsg.txt index 1df627ebe7c..27c1b49f4f0 100644 --- a/sql/share/russian/errmsg.txt +++ b/sql/share/russian/errmsg.txt @@ -284,9 +284,6 @@ character-set=koi8r "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Кеш запросов не может установить размер %lu, новый размер кеша зпросов - %lu", diff --git a/sql/share/serbian/errmsg.txt b/sql/share/serbian/errmsg.txt index ebac72233b3..5311fa016dc 100644 --- a/sql/share/serbian/errmsg.txt +++ b/sql/share/serbian/errmsg.txt @@ -277,9 +277,6 @@ character-set=cp1250 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/slovak/errmsg.txt b/sql/share/slovak/errmsg.txt index 552d71805e1..9355e8fc0c4 100644 --- a/sql/share/slovak/errmsg.txt +++ b/sql/share/slovak/errmsg.txt @@ -290,9 +290,6 @@ character-set=latin2 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/spanish/errmsg.txt b/sql/share/spanish/errmsg.txt index a4f590d45e8..3cdcc3967d7 100644 --- a/sql/share/spanish/errmsg.txt +++ b/sql/share/spanish/errmsg.txt @@ -284,9 +284,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Query cache failed to set size %lu, new query cache size is %lu", diff --git a/sql/share/swedish/errmsg.txt b/sql/share/swedish/errmsg.txt index 15a1562e4a0..17dcdb89ae6 100644 --- a/sql/share/swedish/errmsg.txt +++ b/sql/share/swedish/errmsg.txt @@ -282,9 +282,6 @@ character-set=latin1 "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Storleken av "Query cache" kunde inte sДttas till %lu, ny storlek Дr %lu", diff --git a/sql/share/ukrainian/errmsg.txt b/sql/share/ukrainian/errmsg.txt index 71fddf604c9..99a09afde6c 100644 --- a/sql/share/ukrainian/errmsg.txt +++ b/sql/share/ukrainian/errmsg.txt @@ -287,9 +287,6 @@ character-set=koi8u "Wrong parameter or combination of parameters for START SLAVE UNTIL", "It is recommended to run with --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL, otherwise you are not safe in case of unexpected slave's mysqld restart", "SQL thread is not to be started so UNTIL options are ignored", -"Incorrect table name '%-.100s'", -"Incorrect database name '%-.100s'", -"Incorrect column name '%-.100s'", "Incorrect index name '%-.100s'", "Incorrect catalog name '%-.100s'", "Кеш запит╕в неспроможен встановити розм╕р %lu, новий розм╕р кеша запит╕в - %lu", diff --git a/sql/sql_db.cc b/sql/sql_db.cc index d4e3fe753d3..63bf5f061e9 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -612,7 +612,7 @@ bool mysql_change_db(THD *thd, const char *name) } if ((db_length > NAME_LEN) || check_db_name(dbname)) { - net_printf(thd, ER_WRONG_NAME_FOR_DATABASE, dbname); + net_printf(thd, ER_WRONG_DB_NAME, dbname); x_free(dbname); DBUG_RETURN(1); } @@ -678,7 +678,7 @@ int mysqld_show_create_db(THD *thd, char *dbname, if (check_db_name(dbname)) { - net_printf(thd,ER_WRONG_NAME_FOR_DATABASE, dbname); + net_printf(thd,ER_WRONG_DB_NAME, dbname); DBUG_RETURN(1); } diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 2a03add45bd..017ef065012 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1092,7 +1092,7 @@ int mysql_table_dump(THD* thd, char* db, char* tbl_name, int fd) if (!db || check_db_name(db)) { - net_printf(thd,ER_WRONG_NAME_FOR_DATABASE, db ? db : "NULL"); + net_printf(thd,ER_WRONG_DB_NAME, db ? db : "NULL"); goto err; } if (lower_case_table_names) @@ -1436,7 +1436,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, // null test to handle EOM if (!db || !strip_sp(db) || check_db_name(db)) { - net_printf(thd,ER_WRONG_NAME_FOR_DATABASE, db ? db : "NULL"); + net_printf(thd,ER_WRONG_DB_NAME, db ? db : "NULL"); break; } if (check_access(thd,CREATE_ACL,db,0,1,0)) @@ -1452,7 +1452,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, // null test to handle EOM if (!db || !strip_sp(db) || check_db_name(db)) { - net_printf(thd,ER_WRONG_NAME_FOR_DATABASE, db ? db : "NULL"); + net_printf(thd,ER_WRONG_DB_NAME, db ? db : "NULL"); break; } if (check_access(thd,DROP_ACL,db,0,1,0)) @@ -2072,7 +2072,7 @@ mysql_execute_command(THD *thd) #endif if (strlen(tables->real_name) > NAME_LEN) { - net_printf(thd,ER_WRONG_NAME_FOR_TABLE, tables->real_name); + net_printf(thd,ER_WRONG_TABLE_NAME, tables->real_name); break; } LOCK_ACTIVE_MI; @@ -2117,7 +2117,7 @@ mysql_execute_command(THD *thd) #endif if (strlen(tables->real_name) > NAME_LEN) { - net_printf(thd, ER_WRONG_NAME_FOR_TABLE, tables->alias); + net_printf(thd, ER_WRONG_TABLE_NAME, tables->alias); res=0; break; } @@ -2263,7 +2263,7 @@ mysql_execute_command(THD *thd) ulong priv=0; if (lex->name && (!lex->name[0] || strlen(lex->name) > NAME_LEN)) { - net_printf(thd, ER_WRONG_NAME_FOR_TABLE, lex->name); + net_printf(thd, ER_WRONG_TABLE_NAME, lex->name); res=0; break; } @@ -2842,7 +2842,7 @@ mysql_execute_command(THD *thd) remove_escape(db); // Fix escaped '_' if (check_db_name(db)) { - net_printf(thd,ER_WRONG_NAME_FOR_DATABASE, db); + net_printf(thd,ER_WRONG_DB_NAME, db); goto error; } #ifndef NO_EMBEDDED_ACCESS_CHECKS @@ -3007,7 +3007,7 @@ mysql_execute_command(THD *thd) { if (!strip_sp(lex->name) || check_db_name(lex->name)) { - net_printf(thd,ER_WRONG_NAME_FOR_DATABASE, lex->name); + net_printf(thd,ER_WRONG_DB_NAME, lex->name); break; } /* @@ -3035,7 +3035,7 @@ mysql_execute_command(THD *thd) { if (!strip_sp(lex->name) || check_db_name(lex->name)) { - net_printf(thd, ER_WRONG_NAME_FOR_DATABASE, lex->name); + net_printf(thd, ER_WRONG_DB_NAME, lex->name); break; } /* @@ -3068,7 +3068,7 @@ mysql_execute_command(THD *thd) { if (!strip_sp(lex->name) || check_db_name(lex->name)) { - net_printf(thd, ER_WRONG_NAME_FOR_DATABASE, lex->name); + net_printf(thd, ER_WRONG_DB_NAME, lex->name); break; } if (check_access(thd,ALTER_ACL,lex->name,0,1,0)) @@ -3085,7 +3085,7 @@ mysql_execute_command(THD *thd) { if (!strip_sp(lex->name) || check_db_name(lex->name)) { - net_printf(thd,ER_WRONG_NAME_FOR_DATABASE, lex->name); + net_printf(thd,ER_WRONG_DB_NAME, lex->name); break; } if (check_access(thd,DROP_ACL,lex->name,0,1,0)) @@ -4335,7 +4335,7 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd, if (check_table_name(table->table.str,table->table.length) || table->db.str && check_db_name(table->db.str)) { - net_printf(thd, ER_WRONG_NAME_FOR_TABLE, table->table.str); + net_printf(thd, ER_WRONG_TABLE_NAME, table->table.str); DBUG_RETURN(0); } @@ -4698,7 +4698,7 @@ static bool append_file_to_dir(THD *thd, char **filename_ptr, char *table_name) if (strlen(*filename_ptr)+strlen(table_name) >= FN_REFLEN-1 || !test_if_hard_path(*filename_ptr)) { - my_error(ER_WRONG_NAME_FOR_TABLE, MYF(0), *filename_ptr); + my_error(ER_WRONG_TABLE_NAME, MYF(0), *filename_ptr); return 1; } /* Fix is using unix filename format on dos */ diff --git a/sql/sql_table.cc b/sql/sql_table.cc index e75fec384e7..b1d23de06b0 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -443,7 +443,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name, if (check_column_name(sql_field->field_name)) { - my_error(ER_WRONG_NAME_FOR_COLUMN, MYF(0), sql_field->field_name); + my_error(ER_WRONG_COLUMN_NAME, MYF(0), sql_field->field_name); DBUG_RETURN(-1); } @@ -1754,7 +1754,7 @@ int mysql_create_like_table(THD* thd, TABLE_LIST* table, check_table_name(src_table,table_ident->table.length)) || table_ident->db.str && check_db_name((src_db= table_ident->db.str))) { - my_error(ER_WRONG_NAME_FOR_TABLE, MYF(0), src_table); + my_error(ER_WRONG_TABLE_NAME, MYF(0), src_table); DBUG_RETURN(-1); } diff --git a/tests/client_test.c b/tests/client_test.c index fd9eb380228..03c9c1ff3ae 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -4859,7 +4859,7 @@ static void test_multi_query() } if (!(mysql_real_connect(l_mysql,opt_host,opt_user, opt_password, current_db, opt_port, - opt_unix_socket, CLIENT_MULTI_QUERIES))) /* enable multi queries */ + opt_unix_socket, CLIENT_MULTI_STATEMENTS))) /* enable multi queries */ { fprintf(stdout,"\n connection failed(%s)", mysql_error(l_mysql)); exit(1); |