mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-23187 misses resetting collation connection
MDEV-23187 misses resetting collation connection causing test failures for 10.5+ bugs.
This commit is contained in:
parent
9856bb4245
commit
23e252aef2
2 changed files with 6 additions and 0 deletions
|
@ -1293,10 +1293,12 @@ ERROR 42000: Incorrect parameter count in the call to native function 'json_leng
|
|||
SELECT JSON_LENGTH();
|
||||
ERROR 42000: Incorrect parameter count in the call to native function 'JSON_LENGTH'
|
||||
# MDEV-23187: Assorted assertion failures in json_find_path with certain collations
|
||||
SET @old_collation_connection= @@COLLATION_CONNECTION;
|
||||
SET COLLATION_CONNECTION= ucs2_unicode_ci;
|
||||
SELECT JSON_VALUE('["foo"]', '$**[0]') AS f;
|
||||
f
|
||||
foo
|
||||
SET @@COLLATION_CONNECTION= @old_collation_connection;
|
||||
#
|
||||
# End of 10.4 tests
|
||||
#
|
||||
|
|
|
@ -823,9 +823,13 @@ SELECT JSON_LENGTH();
|
|||
--echo # MDEV-23187: Assorted assertion failures in json_find_path with certain collations
|
||||
|
||||
|
||||
SET @old_collation_connection= @@COLLATION_CONNECTION;
|
||||
|
||||
SET COLLATION_CONNECTION= ucs2_unicode_ci;
|
||||
SELECT JSON_VALUE('["foo"]', '$**[0]') AS f;
|
||||
|
||||
SET @@COLLATION_CONNECTION= @old_collation_connection;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.4 tests
|
||||
--echo #
|
||||
|
|
Loading…
Reference in a new issue