1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Give warnings for unused objects

Changed error message to be compatible with old error file
Added new error message for new DUP_ENTRY syntax
This commit is contained in:
monty@mysql.com/narttu.mysql.fi
2007-01-22 18:42:52 +02:00
parent 693b906f6e
commit 2dcc7110c9
60 changed files with 282 additions and 251 deletions

View File

@ -81,7 +81,7 @@ explain select count(*) from t1 where v between 'a' and 'a ';
--replace_column 9 #
explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a ' and 'b\n';
--error 1062
--error ER_DUP_ENTRY_WITH_KEY_NAME
alter table t1 add unique(v);
alter table t1 add key(v);
select concat('*',v,'*',c,'*',t,'*') as qq from t1 where v='a';
@ -179,17 +179,17 @@ drop table t1;
create table t1 (a char(10), unique (a));
insert into t1 values ('a ');
--error 1062
--error ER_DUP_ENTRY_WITH_KEY_NAME
insert into t1 values ('a ');
alter table t1 modify a varchar(10);
--error 1062
--error ER_DUP_ENTRY_WITH_KEY_NAME
insert into t1 values ('a '),('a '),('a '),('a ');
--error 1062
--error ER_DUP_ENTRY_WITH_KEY_NAME
insert into t1 values ('a ');
--error 1062
--error ER_DUP_ENTRY_WITH_KEY_NAME
insert into t1 values ('a ');
--error 1062
--error ER_DUP_ENTRY_WITH_KEY_NAME
insert into t1 values ('a ');
update t1 set a='a ' where a like 'a%';
select concat(a,'.') from t1;