diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:04:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:04:16 +0000 |
commit | a68fb2d8219f6bccc573009600e9f23e89226a5e (patch) | |
tree | d742d35d14ae816e99293d2b01face30e9f3a46b /mysql-test/main/long_unique_using_hash.result | |
parent | Initial commit. (diff) | |
download | mariadb-10.6-upstream.tar.xz mariadb-10.6-upstream.zip |
Adding upstream version 1:10.6.11.upstream/1%10.6.11upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/long_unique_using_hash.result')
-rw-r--r-- | mysql-test/main/long_unique_using_hash.result | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/mysql-test/main/long_unique_using_hash.result b/mysql-test/main/long_unique_using_hash.result new file mode 100644 index 00000000..619b0f5b --- /dev/null +++ b/mysql-test/main/long_unique_using_hash.result @@ -0,0 +1,56 @@ +create table t1(a blob , unique(a) using hash); +show keys from t1;; +Table t1 +Non_unique 0 +Key_name a +Seq_in_index 1 +Column_name a +Collation A +Cardinality NULL +Sub_part NULL +Packed NULL +Null YES +Index_type HASH +Comment +Index_comment +Ignored NO +drop table t1; +create table t1(a blob , unique(a) using btree); +ERROR 42000: Specified key was too long; max key length is 1000 bytes +create table t1(a int , unique(a) using hash); +show keys from t1;; +Table t1 +Non_unique 0 +Key_name a +Seq_in_index 1 +Column_name a +Collation A +Cardinality NULL +Sub_part NULL +Packed NULL +Null YES +Index_type HASH +Comment +Index_comment +Ignored NO +drop table t1; +create table t1(a int ,b int , c int, unique(a, b, c) using hash); +show keys from t1; +Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored +t1 0 a 1 a A NULL NULL NULL YES HASH NO +t1 0 a 2 b A NULL NULL NULL YES HASH NO +t1 0 a 3 c A NULL NULL NULL YES HASH NO +insert into t1 values(1,1,1); +insert into t1 values(1,1,1); +ERROR 23000: Duplicate entry '1-1-1' for key 'a' +drop table t1; +create table t1(a int ,b int , c int, unique(a, b, c) using hash) engine=memory; +show keys from t1; +Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored +t1 0 a 1 a NULL NULL NULL NULL YES HASH NO +t1 0 a 2 b NULL NULL NULL NULL YES HASH NO +t1 0 a 3 c NULL 0 NULL NULL YES HASH NO +insert into t1 values(1,1,1); +insert into t1 values(1,1,1); +ERROR 23000: Duplicate entry '1-1-1' for key 'a' +drop table t1; |