mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-25259 JSON_TABLE: Illegal mix of collations upon executing query with combination of charsets via view.
The ::print method didn't print the explicitly specified charset.
This commit is contained in:
@ -685,6 +685,19 @@ FROM
|
||||
DROP VIEW v2;
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-25259 JSON_TABLE: Illegal mix of collations upon executing query with combination of charsets via view.
|
||||
--echo #
|
||||
|
||||
CREATE VIEW v AS
|
||||
SELECT * FROM JSON_TABLE(CONVERT('[]' USING dec8),
|
||||
'$' COLUMNS(b VARCHAR(8) CHARSET utf8 PATH '$')) AS jt2
|
||||
WHERE (CONVERT('[]' USING cp1256) = b);
|
||||
|
||||
SELECT * FROM v;
|
||||
|
||||
DROP VIEW v;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.6 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user