diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:07:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:07:14 +0000 |
commit | a175314c3e5827eb193872241446f2f8f5c9d33c (patch) | |
tree | cd3d60ca99ae00829c52a6ca79150a5b6e62528b /mysql-test/main/long_unique_using_hash.test | |
parent | Initial commit. (diff) | |
download | mariadb-10.5-a175314c3e5827eb193872241446f2f8f5c9d33c.tar.xz mariadb-10.5-a175314c3e5827eb193872241446f2f8f5c9d33c.zip |
Adding upstream version 1:10.5.12.upstream/1%10.5.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/long_unique_using_hash.test')
-rw-r--r-- | mysql-test/main/long_unique_using_hash.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mysql-test/main/long_unique_using_hash.test b/mysql-test/main/long_unique_using_hash.test new file mode 100644 index 00000000..1e19cd66 --- /dev/null +++ b/mysql-test/main/long_unique_using_hash.test @@ -0,0 +1,28 @@ +# +# MDEV-371 Unique indexes for blobs +# + +create table t1(a blob , unique(a) using hash); +--query_vertical show keys from t1; +drop table t1; + +--error ER_TOO_LONG_KEY +create table t1(a blob , unique(a) using btree); + +create table t1(a int , unique(a) using hash); +--query_vertical show keys from t1; +drop table t1; + +create table t1(a int ,b int , c int, unique(a, b, c) using hash); +show keys from t1; +insert into t1 values(1,1,1); +--error ER_DUP_ENTRY +insert into t1 values(1,1,1); +drop table t1; + +create table t1(a int ,b int , c int, unique(a, b, c) using hash) engine=memory; +show keys from t1; +insert into t1 values(1,1,1); +--error ER_DUP_ENTRY +insert into t1 values(1,1,1); +drop table t1; |