mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -793,5 +793,15 @@ a b c o
|
||||
DROP VIEW v2;
|
||||
DROP TABLE t1, t2;
|
||||
#
|
||||
# MDEV-25259 JSON_TABLE: Illegal mix of collations upon executing query with combination of charsets via view.
|
||||
#
|
||||
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;
|
||||
b
|
||||
DROP VIEW v;
|
||||
#
|
||||
# End of 10.6 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user