mariadb/mysql-test/suite/tokudb.bugs/r/5469.result
Rich Prohaska 5b18459554 refs use default_storage_engine in mysql tokudb.bugs tests
git-svn-id: file:///svn/mysql/tests/mysql-test@48570 c7de825b-a66e-492c-adef-691d508d4ae1
2012-10-03 22:35:02 +00:00

22 lines
766 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 '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 '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;