~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/create_select_tmp.result

Merge of Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1, t2;
2
 
CREATE TABLE t1 ( a int );
 
2
Warnings:
 
3
Note    1051    Unknown table 't1'
 
4
Note    1051    Unknown table 't2'
 
5
drop table if exists t1;
 
6
Warnings:
 
7
Note    1051    Unknown table 't1'
 
8
CREATE TABLE t1 (
 
9
a int DEFAULT 0 NOT NULL
 
10
) ENGINE = InnoDB;
3
11
INSERT INTO t1 VALUES (1),(2),(1);
4
12
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
5
13
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
9
17
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
10
18
select * from t2;
11
19
ERROR 42S02: Table 'test.t2' doesn't exist
12
 
CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
 
20
CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
13
21
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
14
22
select * from t2;
15
23
ERROR 42S02: Table 'test.t2' doesn't exist