diff --git a/mysql-test/main/ctype_utf8.result b/mysql-test/main/ctype_utf8.result index a0b5a262927..3e8d85f7063 100644 --- a/mysql-test/main/ctype_utf8.result +++ b/mysql-test/main/ctype_utf8.result @@ -11658,8 +11658,8 @@ Warning 1292 Truncated incorrect INTEGER value: 'яяя' # MDEV-28118 Wrong collation of `CAST(.. AS CHAR COLLATE DEFAULT)` # SET NAMES utf8mb3 COLLATE utf8mb3_bin; -SELECT COLLATION(CAST('a' AS CHAR COLLATE DEFAULT)); -COLLATION(CAST('a' AS CHAR COLLATE DEFAULT)) +SELECT COLLATION(CAST('a' AS CHAR COLLATE DEFAULT)) AS c1; +c1 utf8mb3_general_ci CREATE TABLE t1 AS SELECT CAST('a' AS CHAR COLLATE DEFAULT) AS c1; SHOW CREATE TABLE t1; diff --git a/mysql-test/main/ctype_utf8.test b/mysql-test/main/ctype_utf8.test index fb1f271b0ee..bc05671d222 100644 --- a/mysql-test/main/ctype_utf8.test +++ b/mysql-test/main/ctype_utf8.test @@ -2544,7 +2544,7 @@ SELECT CAST(_utf8 'яяя' AS INT); --echo # SET NAMES utf8mb3 COLLATE utf8mb3_bin; -SELECT COLLATION(CAST('a' AS CHAR COLLATE DEFAULT)); +SELECT COLLATION(CAST('a' AS CHAR COLLATE DEFAULT)) AS c1; CREATE TABLE t1 AS SELECT CAST('a' AS CHAR COLLATE DEFAULT) AS c1; SHOW CREATE TABLE t1; DROP TABLE t1;