From 43aadbfe7b941b2fb0151d71f8056f31f5425d20 Mon Sep 17 00:00:00 2001 From: Jason Mo Date: Fri, 12 Nov 2021 14:58:56 +0800 Subject: [PATCH] improve test cases --- .../r/new_character_set_builtin.result | 16 ++++++---------- cmd/explaintest/t/new_character_set_builtin.test | 4 ++-- 2 files changed, 8 insertions(+), 12 deletions(-) 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;