~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/create_select_tmp.test

Renamed more stuff to drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# binlog if it was a transactional table, it resulted in an
6
6
# inconsistency between binlog and the internal list of temp tables.
7
7
 
 
8
# This does not work for RBR yet.
 
9
--source include/have_binlog_format_mixed_or_statement.inc
 
10
 
 
11
-- source include/have_innodb.inc
 
12
--disable_warnings
8
13
drop table if exists t1, t2;
9
 
drop table if exists t1;
10
 
CREATE TABLE t1 (
11
 
  a int DEFAULT 0 NOT NULL
12
 
) ENGINE = InnoDB;
 
14
--enable_warnings
 
15
CREATE TABLE t1 ( a int );
13
16
INSERT INTO t1 VALUES (1),(2),(1);
14
17
--error ER_DUP_ENTRY
15
18
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
16
 
--error ER_NO_SUCH_TABLE
 
19
--error 1146
17
20
select * from t2;
18
21
--error ER_DUP_ENTRY
19
22
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
20
 
--error ER_NO_SUCH_TABLE
21
 
select * from t2;
22
 
--error ER_DUP_ENTRY
23
 
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
24
 
--error ER_NO_SUCH_TABLE
25
 
select * from t2;
26
 
--error ER_DUP_ENTRY
27
 
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
28
 
--error ER_NO_SUCH_TABLE
 
23
--error 1146
 
24
select * from t2;
 
25
--error ER_DUP_ENTRY
 
26
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
 
27
--error 1146
 
28
select * from t2;
 
29
--error ER_DUP_ENTRY
 
30
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
 
31
--error 1146
29
32
select * from t2;
30
33
drop table t1;
31
34