mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
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.
This commit is contained in:
parent
bf2a244406
commit
f9e53a659c
2 changed files with 36 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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 #
|
||||
|
|
Loading…
Reference in a new issue