mariadb/storage/tokudb/mysql-test/tokudb_bugs/r/5469.result
2013-09-21 10:16:06 +02:00

22 lines
776 B
Text

*** Bug #23945 ***
SET DEFAULT_STORAGE_ENGINE = tokudb;
DROP TABLE IF EXISTS t1;
SET AUTOCOMMIT = 1;
CREATE TABLE t1 (PRIMARY KEY (a)) SELECT 1 AS a UNION ALL SELECT 1;
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
SELECT * FROM t1;
ERROR 42S02: Table 'test.t1' doesn't exist
DROP TABLE t1;
ERROR 42S02: Unknown table 'test.t1'
SET AUTOCOMMIT = 0;
CREATE TABLE t1 (PRIMARY KEY (a)) SELECT 1 AS a UNION ALL SELECT 1;
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
SELECT * FROM t1;
ERROR 42S02: Table 'test.t1' doesn't exist
DROP TABLE t1;
ERROR 42S02: Unknown table 'test.t1'
create table t1 (a int, b int) engine=MyISAM;
insert into t1 values (1,1),(1,2);
alter table t1 engine=TokuDB, add unique key (a);
ERROR 23000: Duplicate entry '1' for key 'a'
drop table t1;