diff options
author | Sachin Setiya <sachin.setiya@mariadb.com> | 2019-10-08 17:35:09 +0530 |
---|---|---|
committer | Sachin <sachin.setiya@mariadb.com> | 2020-02-02 13:53:26 +0530 |
commit | 5a6023cf6f5f72e36837761f5df0de91c7de62ed (patch) | |
tree | 91966a1ff7f78ec3c1441bdd8976d2e736db2897 /mysql-test | |
parent | 1b414c0313794c4e9aa36cf099e957f1eb283e3d (diff) | |
download | mariadb-git-5a6023cf6f5f72e36837761f5df0de91c7de62ed.tar.gz |
MDEV-18791 Wrong error upon creating Aria table with long index on BLOB
If we have long unique key for aria engine return too long key error, because
Aria does not support key on virtual generated column.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/main/long_unique_bugs.result | 2 | ||||
-rw-r--r-- | mysql-test/main/long_unique_bugs.test | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/main/long_unique_bugs.result b/mysql-test/main/long_unique_bugs.result index 33496c4e20d..d4b71e2bc46 100644 --- a/mysql-test/main/long_unique_bugs.result +++ b/mysql-test/main/long_unique_bugs.result @@ -265,3 +265,5 @@ ERROR 40001: Deadlock found when trying to get lock; try restarting transaction disconnect con1; connection default; DROP TABLE t1, t2; +CREATE TABLE t1 (a TEXT, UNIQUE(a)) ENGINE=Aria; +ERROR 42000: Specified key was too long; max key length is 1000 bytes diff --git a/mysql-test/main/long_unique_bugs.test b/mysql-test/main/long_unique_bugs.test index dc78f6c7067..62c4076cee0 100644 --- a/mysql-test/main/long_unique_bugs.test +++ b/mysql-test/main/long_unique_bugs.test @@ -317,3 +317,9 @@ INSERT IGNORE INTO t1 VALUES (4, 1)/*4*/; --disconnect con1 --connection default DROP TABLE t1, t2; + +# +# MDEV-18791 Wrong error upon creating Aria table with long index on BLOB +# +--error ER_TOO_LONG_KEY +CREATE TABLE t1 (a TEXT, UNIQUE(a)) ENGINE=Aria; |