Skip to content

Commit

Permalink
improve test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 committed Nov 12, 2021
1 parent e56dae4 commit 43aadbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 6 additions & 10 deletions cmd/explaintest/r/new_character_set_builtin.result
Original file line number Diff line number Diff line change
Expand Up @@ -234,20 +234,16 @@ char(a using gbk) char(a using utf8) char(a)
A A A
釦 �@ �@
NULL [� [�
select char(a using gbk) from t;
char(a using gbk)
A
釦
NULL
select char(12345678 using gbk);
char(12345678 using gbk)
糰N
set @@tidb_enable_vectorized_expression = true;
select char(a using gbk), char(a using utf8), char(a) from t;
char(a using gbk) char(a using utf8) char(a)
A A A
釦 �@ �@
NULL [� [�
select char(a using gbk) from t;
char(a using gbk)
A
釦
NULL
select char(12345678 using gbk);
char(12345678 using gbk)
糰N
set @@tidb_enable_vectorized_expression = false;
4 changes: 2 additions & 2 deletions cmd/explaintest/t/new_character_set_builtin.test
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ drop table if exists t;
create table t (a char(20));
insert into t values ('65'), ('123456'), ('123456789');
select char(a using gbk), char(a using utf8), char(a) from t;
select char(a using gbk) from t;
select char(12345678 using gbk);
set @@tidb_enable_vectorized_expression = true;
select char(a using gbk), char(a using utf8), char(a) from t;
select char(a using gbk) from t;
select char(12345678 using gbk);
set @@tidb_enable_vectorized_expression = false;

0 comments on commit 43aadbf

Please sign in to comment.