mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
f6f615b3cc
into mysql.com:/home/mydev/mysql-5.1-wl1563-msg mysql-test/r/create_select_tmp.result: Auto merged mysql-test/r/heap_hash.result: Auto merged mysql-test/r/innodb.result: Auto merged mysql-test/r/join_outer.result: Auto merged mysql-test/r/myisam.result: Auto merged mysql-test/r/ndb_index_unique.result: Auto merged mysql-test/r/rpl_loaddata.result: Auto merged mysql-test/r/sp-error.result: Auto merged mysql-test/r/sp.result: Auto merged mysql-test/r/sp_trans.result: Auto merged mysql-test/r/type_bit.result: Auto merged mysql-test/r/type_varchar.result: Auto merged sql/handler.cc: Auto merged sql/share/errmsg.txt: Auto merged mysql-test/r/heap.result: WL#1563 - Modify MySQL to support fast CREATE/DROP INDEX Manual merge mysql-test/r/rpl_err_ignoredtable.result: WL#1563 - Modify MySQL to support fast CREATE/DROP INDEX Manual merge mysql-test/r/rpl_insert_id.result: WL#1563 - Modify MySQL to support fast CREATE/DROP INDEX Manual merge
20 lines
846 B
Text
20 lines
846 B
Text
drop table if exists t1, t2;
|
|
CREATE TABLE t1 ( a int );
|
|
INSERT INTO t1 VALUES (1),(2),(1);
|
|
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
|
|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
|
select * from t2;
|
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
|
drop table t1;
|