~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/t/create.test

  • Committer: paul-mccullagh
  • Date: 2008-03-10 11:36:34 UTC
  • Revision ID: paul-mccullagh-417ebf175a9c8ee6e5b3777d9e2398e1fb197391
Implemented full durability

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
 
154
154
CREATE TABLE t1 (a int not null);
155
155
INSERT INTO t1 values (1),(2),(1);
156
 
--error 1582
 
156
--error ER_DUP_ENTRY
157
157
CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;
158
158
--error 1146
159
159
SELECT * from t2;
232
232
create table if not exists t1 select 2;
233
233
select * from t1;
234
234
create table if not exists t1 select 3 as 'a',4 as 'b';
235
 
--error 1582
 
235
--error ER_DUP_ENTRY
236
236
create table if not exists t1 select 3 as 'a',3 as 'b';
237
237
show warnings;
238
238
show status like "Opened_tables";
307
307
create table t3 like mysqltest.t3;
308
308
--error 1049
309
309
create table non_existing_database.t1 like t1;
310
 
--error 1051
 
310
--error ER_NO_SUCH_TABLE
311
311
create table t3 like non_existing_table;
312
312
--error 1050
313
313
create temporary table t3 like t1;
411
411
drop database mysqltest;
412
412
select database();
413
413
 
414
 
# Connect without a database
 
414
# Connect without a database as user mysqltest_1
 
415
create user mysqltest_1;
415
416
connect (user1,localhost,mysqltest_1,,*NO-ONE*);
416
417
connection user1;
417
418
select database(), user();
418
419
connection default;
419
420
disconnect user1;
 
421
drop user mysqltest_1;
420
422
use test;
421
423
 
422
424
#
685
687
 
686
688
CREATE TABLE t1 (a int, b int);
687
689
insert into t1 values (1,1),(1,2);
688
 
--error 1582
 
690
--error ER_DUP_ENTRY
689
691
CREATE TABLE t2 (primary key (a)) select * from t1;
690
692
# This should give warning
691
693
drop table if exists t2;
692
 
--error 1582
 
694
--error ER_DUP_ENTRY
693
695
CREATE TEMPORARY TABLE t2 (primary key (a)) engine=myisam select * from t1; # PBXT: Cannot INSERT/SELECT with temp
694
696
# This should give warning
695
697
drop table if exists t2;
696
698
CREATE TABLE t2 (a int, b int, primary key (a));
697
 
--error 1582
 
699
--error ER_DUP_ENTRY
698
700
CREATE TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;
699
701
SELECT * from t2;
700
702
TRUNCATE table t2;
701
 
--error 1582
 
703
--error ER_DUP_ENTRY
702
704
INSERT INTO t2 select * from t1;
703
705
SELECT * from t2;
704
706
drop table t2;
705
707
 
706
708
CREATE TEMPORARY TABLE t2 (a int, b int, primary key (a)) engine=myisam; # PBXT: Cannot INSERT/SELECT with temp
707
 
--error 1582
 
709
--error ER_DUP_ENTRY
708
710
CREATE TEMPORARY TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;
709
711
SELECT * from t2;
710
712
TRUNCATE table t2;
711
 
--error 1582
 
713
--error ER_DUP_ENTRY
712
714
INSERT INTO t2 select * from t1;
713
715
SELECT * from t2;
714
716
drop table t1,t2;