707
707
ERROR 42S02: Table 'test.t1' doesn't exist
709
709
ERROR 42S02: Unknown table 't1'
710
create table t1 (i int);
711
insert into t1 values (1), (2);
713
create table t2 select * from t1;
714
ERROR HY000: Table 't2' was not locked with LOCK TABLES
715
create table if not exists t2 select * from t1;
716
ERROR HY000: Table 't2' was not locked with LOCK TABLES
718
create table t2 (j int);
720
create table t2 select * from t1;
721
ERROR HY000: Table 't2' was not locked with LOCK TABLES
722
create table if not exists t2 select * from t1;
723
ERROR HY000: Table 't2' was not locked with LOCK TABLES
725
lock table t1 read, t2 read;
726
create table t2 select * from t1;
727
ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
728
create table if not exists t2 select * from t1;
729
ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
731
lock table t1 read, t2 write;
732
create table t2 select * from t1;
733
ERROR 42S01: Table 't2' already exists
734
create table if not exists t2 select * from t1;
736
Note 1050 Table 't2' already exists
744
create temporary table t2 select * from t1;
745
create temporary table if not exists t2 select * from t1;
747
Note 1050 Table 't2' already exists
756
710
create table t1 (upgrade int);
758
712
create table t1 (