Skip to content

Commit f13f391

Browse files
committed
This is an automated cherry-pick of pingcap#61080
Signed-off-by: ti-chi-bot <[email protected]> Signed-off-by: xhe <[email protected]>
1 parent ec42fdb commit f13f391

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cmd/explaintest/r/new_character_set.result

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,14 @@ set @@character_set_connection=gbk;
9191
select hex('一a'), '一a';
9292
hex('涓?') 涓?
9393
E4B83F 涓?
94+
set character_set_results = "gbk";
95+
select cast(0x414141E280A9424242 as char charset utf8mb4);
96+
cast(0x414141E280A9424242 as char charset utf8mb4)
97+
AAA?BBB
98+
SET character_set_results = @undefined_var;
99+
create table t61085 (a char(255) charset gbk);
100+
insert into t61085 values ('AAA');
101+
set SESSION sql_mode = '';
102+
select * from t61085 where a = cast(0x41414180424242 as char charset gbk);
103+
Error 1105: Cannot convert string 'AAA\x80BB...' from binary to gbk
104+
DROP TABLE t61085;

0 commit comments

Comments
 (0)