~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/auto_increment.test

  • Committer: Brian Aker
  • Date: 2009-01-28 08:27:13 UTC
  • mfrom: (813.1.7 new-temporal)
  • Revision ID: brian@tangent.org-20090128082713-13yfi46omee0wbpx
Import work from Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
insert into t1 values (NULL);
95
95
select * from t1;
96
96
drop table t1;
97
 
#
98
 
# last_insert_id() madness
99
 
# Bug 314554 - Autoincrement succeeds where it should have failed
100
 
#at line 109
101
 
#create table t1 (i int not null auto_increment primary key);
102
 
#insert into t1 set i = 254;
103
 
#insert into t1 set i = null;
104
 
#select last_insert_id();
105
 
#explain extended select last_insert_id();
106
 
#--error ER_DUP_ENTRY
107
 
#insert into t1 set i = 254;
108
 
#select last_insert_id();
109
 
#--error ER_DUP_ENTRY
110
 
#insert into t1 set i = null;
111
 
#select last_insert_id();
112
 
#drop table t1;
113
97
 
114
98
create table t1 (i int not null auto_increment, key (i));
115
99
insert into t1 set i = 254;