diff options
author | unknown <mskold/marty@linux.site> | 2006-12-07 16:08:14 +0100 |
---|---|---|
committer | unknown <mskold/marty@linux.site> | 2006-12-07 16:08:14 +0100 |
commit | bdb6065db82c3865b6d527b09281227cc1b06202 (patch) | |
tree | 712d0c8fbce487395d28d5568fd60a3dec0a1c74 | |
parent | 64da25328287f7f983dfc5546816d8dce80eed07 (diff) | |
parent | 0b2da8dca9d15ef3e79b11a95ddc182fa9c6271a (diff) | |
download | mariadb-git-bdb6065db82c3865b6d527b09281227cc1b06202.tar.gz |
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.1
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
-rw-r--r-- | mysql-test/r/ndb_index_unique.result | 15 | ||||
-rw-r--r-- | mysql-test/t/ndb_index_unique.test | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_index_unique.result b/mysql-test/r/ndb_index_unique.result index fbc3a2bb915..d83c60e6a8d 100644 --- a/mysql-test/r/ndb_index_unique.result +++ b/mysql-test/r/ndb_index_unique.result @@ -137,6 +137,21 @@ a b c 6 7 2 7 8 3 8 2 3 +create unique index bi using hash on t2(b); +insert into t2 values(9, 3, 1); +ERROR 23000: Duplicate entry '' for key 0 +alter table t2 drop index bi; +insert into t2 values(9, 3, 1); +select * from t2 order by a; +a b c +2 3 5 +3 4 6 +4 5 8 +5 6 2 +6 7 2 +7 8 3 +8 2 3 +9 3 1 drop table t2; CREATE TABLE t2 ( a int unsigned NOT NULL PRIMARY KEY, diff --git a/mysql-test/t/ndb_index_unique.test b/mysql-test/t/ndb_index_unique.test index a1fd432a29a..8f1a4e35ece 100644 --- a/mysql-test/t/ndb_index_unique.test +++ b/mysql-test/t/ndb_index_unique.test @@ -89,6 +89,14 @@ delete from t2 where a = 1; insert into t2 values(8, 2, 3); select * from t2 order by a; +# Bug #24818 CREATE UNIQUE INDEX (...) USING HASH on a NDB table crashes mysqld +create unique index bi using hash on t2(b); +-- error 1062 +insert into t2 values(9, 3, 1); +alter table t2 drop index bi; +insert into t2 values(9, 3, 1); +select * from t2 order by a; + drop table t2; CREATE TABLE t2 ( |