~drizzle-trunk/drizzle/development

991.1.4 by Stewart Smith
Add test for CREATE TABLE SELECT column order for insert if table already exists
1
create table t1 (a int not null, b int, primary key (a));
2
insert into t1 values (1,1);
3
--error 1364
4
create table if not exists t1 select 2;
5
select * from t1;
6
drop table t1;
7
8
create table t1 select 1,2,3;
9
--error 1364
10
create table if not exists t1 select 1,2;
11
--error 1364
12
create table if not exists t1 select 1;
13
14
select * from t1;
15
16
drop table t1;
17
18
19
create table t1 (a int not null primary key auto_increment, b int, c int, d int);
20
create table if not exists t1 select 1,2;
21
select * from t1;
22
drop table t1;