Loading mysql-test/r/partition_list.result +10 −0 Original line number Diff line number Diff line Loading @@ -191,3 +191,13 @@ SELECT COUNT(*) FROM t1 WHERE s1 < 3; COUNT(*) 2 DROP TABLE t1; create table t1 (a int auto_increment primary key) auto_increment=100 partition by list (a) (partition p0 values in (1, 100)); create index inx on t1 (a); insert into t1 values (null); select * from t1; a 100 drop table t1; mysql-test/t/partition_list.test +12 −0 Original line number Diff line number Diff line Loading @@ -124,3 +124,15 @@ INSERT INTO t1 VALUES (1), (2), (3), (4), (5); SELECT COUNT(*) FROM t1 WHERE s1 < 3; DROP TABLE t1; # # Bug 19281 Partitions: Auto-increment value lost # create table t1 (a int auto_increment primary key) auto_increment=100 partition by list (a) (partition p0 values in (1, 100)); create index inx on t1 (a); insert into t1 values (null); select * from t1; drop table t1; sql/ha_partition.cc +1 −0 Original line number Diff line number Diff line Loading @@ -1565,6 +1565,7 @@ int ha_partition::copy_partitions(ulonglong *copied, ulonglong *deleted) void ha_partition::update_create_info(HA_CREATE_INFO *create_info) { m_file[0]->update_create_info(create_info); return; } Loading Loading
mysql-test/r/partition_list.result +10 −0 Original line number Diff line number Diff line Loading @@ -191,3 +191,13 @@ SELECT COUNT(*) FROM t1 WHERE s1 < 3; COUNT(*) 2 DROP TABLE t1; create table t1 (a int auto_increment primary key) auto_increment=100 partition by list (a) (partition p0 values in (1, 100)); create index inx on t1 (a); insert into t1 values (null); select * from t1; a 100 drop table t1;
mysql-test/t/partition_list.test +12 −0 Original line number Diff line number Diff line Loading @@ -124,3 +124,15 @@ INSERT INTO t1 VALUES (1), (2), (3), (4), (5); SELECT COUNT(*) FROM t1 WHERE s1 < 3; DROP TABLE t1; # # Bug 19281 Partitions: Auto-increment value lost # create table t1 (a int auto_increment primary key) auto_increment=100 partition by list (a) (partition p0 values in (1, 100)); create index inx on t1 (a); insert into t1 values (null); select * from t1; drop table t1;
sql/ha_partition.cc +1 −0 Original line number Diff line number Diff line Loading @@ -1565,6 +1565,7 @@ int ha_partition::copy_partitions(ulonglong *copied, ulonglong *deleted) void ha_partition::update_create_info(HA_CREATE_INFO *create_info) { m_file[0]->update_create_info(create_info); return; } Loading