summaryrefslogtreecommitdiff
path: root/mysql-test/t/heap.test
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-03-15 19:31:52 +0400
committerunknown <ramil@mysql.com>2005-03-15 19:31:52 +0400
commit3c42daa9a371e7900f10d2bfb2cf20e46cfba122 (patch)
tree38d287295dc7d362de78330407519219d297132a /mysql-test/t/heap.test
parent9af776c8cbad88bf4d42686c91a6aa8a67484d56 (diff)
parent0ba3164e0e0fa7217059413440f7ab2f844efce7 (diff)
downloadmariadb-git-3c42daa9a371e7900f10d2bfb2cf20e46cfba122.tar.gz
merging
heap/hp_create.c: Auto merged sql/filesort.cc: Auto merged mysql-test/r/heap.result: manual merging mysql-test/t/heap.test: manual merging sql/ha_heap.cc: manual merging
Diffstat (limited to 'mysql-test/t/heap.test')
-rw-r--r--mysql-test/t/heap.test29
1 files changed, 29 insertions, 0 deletions
diff --git a/mysql-test/t/heap.test b/mysql-test/t/heap.test
index 6353cd78d6a..b69649585ff 100644
--- a/mysql-test/t/heap.test
+++ b/mysql-test/t/heap.test
@@ -406,3 +406,32 @@ drop table t1;
# Reset varchar test
#
eval set storage_engine=$default;
+
+#
+# Bug #8489: Strange auto_increment behaviour
+#
+
+create table t1 (a bigint unsigned auto_increment primary key, b int,
+ key (b, a)) engine=heap;
+insert t1 (b) values (1);
+insert t1 (b) values (1);
+insert t1 (b) values (1);
+insert t1 (b) values (1);
+insert t1 (b) values (1);
+insert t1 (b) values (1);
+insert t1 (b) values (1);
+insert t1 (b) values (1);
+select * from t1;
+drop table t1;
+create table t1 (a int not null, b int not null auto_increment,
+ primary key(a, b), key(b)) engine=heap;
+insert t1 (a) values (1);
+insert t1 (a) values (1);
+insert t1 (a) values (1);
+insert t1 (a) values (1);
+insert t1 (a) values (1);
+insert t1 (a) values (1);
+insert t1 (a) values (1);
+insert t1 (a) values (1);
+select * from t1;
+drop table t1;