diff options
author | unknown <istruewing@chilla.local> | 2007-03-27 17:59:49 +0200 |
---|---|---|
committer | unknown <istruewing@chilla.local> | 2007-03-27 17:59:49 +0200 |
commit | 548aad2578670f1ad9af2efa38f9a4d63f535810 (patch) | |
tree | 488f8a4e87714bd4ea3abfe31971540c3ef4162e /mysql-test/t/heap_btree.test | |
parent | fa82ebd2d650fe92119ac72169460b80da84e60f (diff) | |
parent | 5e0ce03954693c5160feeebd475b048f8b6b2497 (diff) | |
download | mariadb-git-548aad2578670f1ad9af2efa38f9a4d63f535810.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-engines
into chilla.local:/home/mydev/mysql-5.1-bug24985
storage/myisam/ha_myisam.cc:
Auto merged
mysql-test/r/heap_btree.result:
Bug#24985 - UTF8 ENUM primary key on MEMORY using BTREE
causes incorrect duplicate entries
Manual merge from 5.0
mysql-test/t/heap_btree.test:
Bug#24985 - UTF8 ENUM primary key on MEMORY using BTREE
causes incorrect duplicate entries
Manual merge from 5.0
Diffstat (limited to 'mysql-test/t/heap_btree.test')
-rw-r--r-- | mysql-test/t/heap_btree.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/heap_btree.test b/mysql-test/t/heap_btree.test index 8e745d7646d..a8c0c5ce353 100644 --- a/mysql-test/t/heap_btree.test +++ b/mysql-test/t/heap_btree.test @@ -196,6 +196,23 @@ UPDATE t1 SET c2= c2 + 1 WHERE c1 = 'A'; SELECT * FROM t1; DROP TABLE t1; +# +# Bug#24985 - UTF8 ENUM primary key on MEMORY using BTREE +# causes incorrect duplicate entries +# +CREATE TABLE t1 ( + c1 ENUM('1', '2'), + UNIQUE USING BTREE(c1) +) ENGINE= MEMORY DEFAULT CHARSET= utf8; +INSERT INTO t1 VALUES('1'), ('2'); +DROP TABLE t1; +CREATE TABLE t1 ( + c1 SET('1', '2'), + UNIQUE USING BTREE(c1) +) ENGINE= MEMORY DEFAULT CHARSET= utf8; +INSERT INTO t1 VALUES('1'), ('2'); +DROP TABLE t1; + --echo End of 4.1 tests # |