Skip to content

Commit

Permalink
MDEV-27690 Crash on CHARACTER SET csname COLLATE DEFAULT in column …
Browse files Browse the repository at this point in the history
…definition

Adding a 10.6 specific test from the MDEV
  • Loading branch information
abarkov committed Apr 25, 2022
1 parent fae0cca commit 4ed30b2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mysql-test/suite/json/r/json_table.result
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
11 changes: 11 additions & 0 deletions mysql-test/suite/json/t/json_table.test
Original file line number Diff line number Diff line change
Expand Up @@ -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 #

0 comments on commit 4ed30b2

Please sign in to comment.