~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/r/create_select_tmp.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

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