~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/auto_increment_update.test

  • Committer: Stewart Smith
  • Date: 2010-06-02 06:49:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1587.
  • Revision ID: stewart@flamingspork.com-20100602064938-ti58v0hs1obg6vy5
Make innobase auto_increment behaviour be the same as MyISAM on UPDATE. We also fix up auto_increment.result as the previous result was incorrect (we now match the mysql myisam test result). Also add a basic test (from the bug report) for the correct functionality

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
create table t1 (a int not null auto_increment primary key, val int);
 
2
insert into t1 (val) values (1);
 
3
update t1 set a=2 where a=1;
 
4
insert into t1 (val) values (1);
 
5
drop table t1;