diff --git a/cmd/explaintest/r/new_character_set_builtin.result b/cmd/explaintest/r/new_character_set_builtin.result index dd90408c24fd9..e0c6b33e521da 100644 --- a/cmd/explaintest/r/new_character_set_builtin.result +++ b/cmd/explaintest/r/new_character_set_builtin.result @@ -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; diff --git a/cmd/explaintest/t/new_character_set_builtin.test b/cmd/explaintest/t/new_character_set_builtin.test index ae5fc99e30269..4260119b7994e 100644 --- a/cmd/explaintest/t/new_character_set_builtin.test +++ b/cmd/explaintest/t/new_character_set_builtin.test @@ -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;