~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/create_select_tmp.test

Merged from Toru - removal of my_time_t.

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
-- source include/have_innodb.inc
 
9
--disable_warnings
8
10
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;
 
11
--enable_warnings
 
12
CREATE TABLE t1 ( a int );
13
13
INSERT INTO t1 VALUES (1),(2),(1);
14
14
--error ER_DUP_ENTRY
15
15
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
16
 
--error ER_TABLE_UNKNOWN
 
16
--error 1146
17
17
select * from t2;
18
18
--error ER_DUP_ENTRY
19
19
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
20
 
--error ER_TABLE_UNKNOWN
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_TABLE_UNKNOWN
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_TABLE_UNKNOWN
 
20
--error 1146
 
21
select * from t2;
 
22
--error ER_DUP_ENTRY
 
23
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
 
24
--error 1146
 
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 1146
29
29
select * from t2;
30
30
drop table t1;
31
31