diff options
author | Alexander Barkov <bar@mariadb.com> | 2020-06-12 09:55:38 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2020-06-12 09:55:38 +0400 |
commit | f9e53a659c87f1147d4f6d004702077d4d0ce5d7 (patch) | |
tree | f141d579a7388e11a9f838638766b149b93efa1f | |
parent | bf2a244406c36cd12bc53f9a30c8a2cab191f235 (diff) | |
download | mariadb-git-f9e53a659c87f1147d4f6d004702077d4d0ce5d7.tar.gz |
MDEV-22499 Assertion `(uint) (table_check_constraints - share->check_constraints) == (uint) (share->table_check_constraints - share->field_check_constraints)' failed in TABLE_SHARE::init_from_binary_frm_image
The patch for MDEV-22111 fixed MDEV-22499 as well.
Adding tests only.
-rw-r--r-- | mysql-test/main/ctype_utf32_uca.result | 18 | ||||
-rw-r--r-- | mysql-test/main/ctype_utf32_uca.test | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/mysql-test/main/ctype_utf32_uca.result b/mysql-test/main/ctype_utf32_uca.result index cf816f35d4e..3f90bedd1c1 100644 --- a/mysql-test/main/ctype_utf32_uca.result +++ b/mysql-test/main/ctype_utf32_uca.result @@ -7921,3 +7921,21 @@ SET NAMES utf8; # # End of 10.2 tests # +# +# Start of 10.4 tests +# +# +# MDEV-22499 Assertion `(uint) (table_check_constraints - share->check_constraints) == (uint) (share->table_check_constraints - share->field_check_constraints)' failed in TABLE_SHARE::init_from_binary_frm_image +# +SET @@SESSION.collation_connection=utf32_estonian_ci; +CREATE TABLE t1(c1 SET('a') COLLATE 'Binary',c2 JSON); +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `c1` set('\0\0\0a') CHARACTER SET binary DEFAULT NULL, + `c2` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`c2`)) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +DROP TABLE t1; +# +# End of 10.4 tests +# diff --git a/mysql-test/main/ctype_utf32_uca.test b/mysql-test/main/ctype_utf32_uca.test index 334d8fd1d48..42635d1464d 100644 --- a/mysql-test/main/ctype_utf32_uca.test +++ b/mysql-test/main/ctype_utf32_uca.test @@ -268,3 +268,21 @@ SET NAMES utf8; --echo # --echo # End of 10.2 tests --echo # + + +--echo # +--echo # Start of 10.4 tests +--echo # + +--echo # +--echo # MDEV-22499 Assertion `(uint) (table_check_constraints - share->check_constraints) == (uint) (share->table_check_constraints - share->field_check_constraints)' failed in TABLE_SHARE::init_from_binary_frm_image +--echo # + +SET @@SESSION.collation_connection=utf32_estonian_ci; +CREATE TABLE t1(c1 SET('a') COLLATE 'Binary',c2 JSON); +SHOW CREATE TABLE t1; +DROP TABLE t1; + +--echo # +--echo # End of 10.4 tests +--echo # |