diff options
author | msvensson@pilot.blaudden <> | 2007-03-01 13:43:04 +0100 |
---|---|---|
committer | msvensson@pilot.blaudden <> | 2007-03-01 13:43:04 +0100 |
commit | 61140f0446ef2bc09c93af766a4b86b3b8c58e97 (patch) | |
tree | 31eae62fb8efd4decfe49c873ca4641f27b1596f /mysql-test/r/alter_table.result | |
parent | 0ee93fdb023e3e0400cfdd8469dca244ae63f730 (diff) | |
download | mariadb-git-61140f0446ef2bc09c93af766a4b86b3b8c58e97.tar.gz |
Bug#25262 Auto Increment lost when changing Engine type
- Try to copy the autoincrement value when altering the table
Diffstat (limited to 'mysql-test/r/alter_table.result')
-rw-r--r-- | mysql-test/r/alter_table.result | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/alter_table.result b/mysql-test/r/alter_table.result index d8de2655c6c..94a65ff51d2 100644 --- a/mysql-test/r/alter_table.result +++ b/mysql-test/r/alter_table.result @@ -826,3 +826,27 @@ create table t1 (t varchar(255) default null, key t (t(80))) engine=myisam default charset=latin1; alter table t1 change t t text; drop table t1; +create table t1(id int(8) primary key auto_increment) engine=heap; +insert into t1 values (null); +insert into t1 values (null); +select * from t1; +id +1 +2 +alter table t1 auto_increment = 50; +alter table t1 engine = myisam; +insert into t1 values (null); +select * from t1; +id +1 +2 +50 +alter table t1 engine = heap; +insert into t1 values (null); +select * from t1; +id +1 +2 +50 +51 +drop table t1; |