diff options
author | monty@mysql.com/narttu.mysql.fi <> | 2007-01-22 18:42:52 +0200 |
---|---|---|
committer | monty@mysql.com/narttu.mysql.fi <> | 2007-01-22 18:42:52 +0200 |
commit | 2dcc7110c9fef59752e8cb01c9c79e2afb718362 (patch) | |
tree | b7f3dc3063518fbbc2df9502576bcfa67d65bf34 /mysql-test/t/insert_select.test | |
parent | 693b906f6e093a908a1abded047b6a70676f3417 (diff) | |
download | mariadb-git-2dcc7110c9fef59752e8cb01c9c79e2afb718362.tar.gz |
Give warnings for unused objects
Changed error message to be compatible with old error file
Added new error message for new DUP_ENTRY syntax
Diffstat (limited to 'mysql-test/t/insert_select.test')
-rw-r--r-- | mysql-test/t/insert_select.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/t/insert_select.test b/mysql-test/t/insert_select.test index 6f86ed897ac..dfe647fe87b 100644 --- a/mysql-test/t/insert_select.test +++ b/mysql-test/t/insert_select.test @@ -10,7 +10,7 @@ create table t1 (bandID MEDIUMINT UNSIGNED NOT NULL PRIMARY KEY, payoutID SMALLI insert into t1 (bandID,payoutID) VALUES (1,6),(2,6),(3,4),(4,9),(5,10),(6,1),(7,12),(8,12); create table t2 (payoutID SMALLINT UNSIGNED NOT NULL PRIMARY KEY); insert into t2 (payoutID) SELECT DISTINCT payoutID FROM t1; ---error 1062 +--error ER_DUP_ENTRY_WITH_KEY_NAME insert into t2 (payoutID) SELECT payoutID+10 FROM t1; insert ignore into t2 (payoutID) SELECT payoutID+10 FROM t1; select * from t2; @@ -101,7 +101,7 @@ create table t1 (a int not null primary key, b char(10)); create table t2 (a int not null, b char(10)); insert into t1 values (1,"t1:1"),(3,"t1:3"); insert into t2 values (2,"t2:2"), (3,"t2:3"); ---error 1062 +--error ER_DUP_ENTRY_WITH_KEY_NAME insert into t1 select * from t2; select * from t1; # REPLACE .. SELECT is not yet supported by PS |