You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that a combination of casting with character set definition doesn't work, while it's a valid syntax in MySQL.
Error:
ParseException: Encountered: <K_SET> / "SET", at line 1, column 37, in lexical state DEFAULT.
Was expecting one of these terminals within expansion starting at 6381:5:
<K_FORMAT> (inside 6379:5) ...
....
SQL Example:
CREATE TABLE demo_strings (
id INT AUTO_INCREMENT PRIMARY KEY,
txt VARCHAR(50)
) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
INSERT INTO demo_strings (txt) VALUES
('hello'),
('abc'),
('こんにちは');
SELECT CAST('abc' AS CHAR CHARACTER SET utf8mb4);