Commit 4ed30b2a authored by Alexander Barkov's avatar Alexander Barkov

MDEV-27690 Crash on `CHARACTER SET csname COLLATE DEFAULT` in column definition

Adding a 10.6 specific test from the MDEV
parent fae0ccad
......@@ -981,5 +981,15 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
)
) AS jt' at line 3
#
# MDEV-27690 Crash on `CHARACTER SET csname COLLATE DEFAULT` in column definition
#
SELECT * FROM json_table('[{"name":"Jeans"}]', '$[*]'
COLUMNS(
name VARCHAR(10) CHARACTER SET latin1 COLLATE DEFAULT PATH '$.name'
)
) AS jt;
name
Jeans
#
# End of 10.6 tests
#
......@@ -842,6 +842,17 @@ SELECT * FROM json_table('[{"name":"str"}]', '$[*]'
) AS jt;
--echo #
--echo # MDEV-27690 Crash on `CHARACTER SET csname COLLATE DEFAULT` in column definition
--echo #
SELECT * FROM json_table('[{"name":"Jeans"}]', '$[*]'
COLUMNS(
name VARCHAR(10) CHARACTER SET latin1 COLLATE DEFAULT PATH '$.name'
)
) AS jt;
--echo #
--echo # End of 10.6 tests
--echo #
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment