~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/innodb.result

  • Committer: Brian Aker
  • Date: 2009-06-05 23:10:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1055.
  • Revision ID: brian@gaz-20090605231006-01nyw7pfpj2z2v8p
Remove guts in parser for LOCK TABLE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
774
774
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
775
775
1       SIMPLE  t1      range   PRIMARY PRIMARY 4       NULL    #       Using where
776
776
drop table t1;
777
 
create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(30),primary key (id,id2),index index_id3 (id3)) engine=innodb;
778
 
insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJKL');
779
 
LOCK TABLES t1 WRITE;
780
 
insert into t1 values (99,1,2,'D'),(1,1,2,'D');
781
 
ERROR 23000: Duplicate entry '1-1' for key 'PRIMARY'
782
 
select id from t1;
783
 
id
784
 
0
785
 
1
786
 
2
787
 
select id from t1;
788
 
id
789
 
0
790
 
1
791
 
2
792
 
UNLOCK TABLES;
793
 
DROP TABLE t1;
794
 
create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(30),primary key (id,id2),index index_id3 (id3)) engine=innodb;
795
 
insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJKL');
796
 
LOCK TABLES t1 WRITE;
797
 
begin;
798
 
insert into t1 values (99,1,2,'D'),(1,1,2,'D');
799
 
ERROR 23000: Duplicate entry '1-1' for key 'PRIMARY'
800
 
select id from t1;
801
 
id
802
 
0
803
 
1
804
 
2
805
 
insert ignore into t1 values (100,1,2,'D'),(1,1,99,'D');
806
 
commit;
807
 
select id,id3 from t1;
808
 
id      id3
809
 
0       0
810
 
1       1
811
 
2       2
812
 
100     2
813
 
UNLOCK TABLES;
814
 
DROP TABLE t1;
815
777
create table t1 (a char(20), unique (a(5))) engine=innodb;
816
778
drop table t1;
817
779
create table t1 (a char(20), index (a(5))) engine=innodb;