1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge mysql.com:/home/hf/work/32247/my51-32247

into  mysql.com:/home/hf/work/mrg/my51-mrg
This commit is contained in:
holyfoot/hf@hfmain.(none)
2007-12-06 16:43:52 +04:00
6 changed files with 57 additions and 26 deletions

View File

@ -1577,4 +1577,25 @@ INSERT INTO t1 (int_column, char_column) VALUES
SELECT * FROM t1 ORDER BY char_column DESC;
DROP TABLE t1;
#
# Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table)
#
CREATE TABLE t1(id MEDIUMINT NOT NULL AUTO_INCREMENT,
user CHAR(25), PRIMARY KEY(id))
PARTITION BY RANGE(id)
SUBPARTITION BY hash(id) subpartitions 2
(PARTITION pa1 values less than (10),
PARTITION pa2 values less than (20),
PARTITION pa11 values less than MAXVALUE);
--disable_query_log
let $n= 15;
while ($n)
{
insert into t1 (user) values ('mysql');
dec $n;
}
--enable_query_log
show create table t1;
drop table t1;
--echo End of 5.1 tests