diff --git a/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007 b/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007 index 73a98b9f480eec62ffab0d8c7cea55c336dc3b1c..5ff406889852b68b6fca27d12e3430c9627b9a62 100644 --- a/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007 +++ b/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007 @@ -1,6 +1,8 @@ -- @owner: @daiguatutu -- @date: 2022-02-26 -- @testpoint: 行级default约束,建立单个约束 ->数值计算/字符串/日期/时间间隔/类型转换 +-- @modified by: xiaqi14 2024/12/25 优化用例,修改回显信息 + --step1: 创建表并建立约束; expect: 执行成功 drop table if exists t_ustore_ddl_defaultcheck_0007; SQL SUCCESS @@ -23,12 +25,12 @@ insert into t_ustore_ddl_defaultcheck_0007(id,c_int) values(1,1000); SQL SUCCESS --step3: 查看表数据; expect: 默认值插入成功 select * from t_ustore_ddl_defaultcheck_0007 order by 1; -+----+-------+---------+----------------------------------------------------------------------------------------------------------------------+--------+--------+ -| id | c_int | c_vchar | c_clob | c_blob | c_date | -+----+-------+---------+----------------------------------------------------------------------------------------------------------------------+--------+--------+ +?.* +?.* +?.* | 1 | 1000 | | 1+2+1.12z1---13-16-0-ray[1,2,3] -t_ustore_ddl_defaultcheck_0007 2z1-1.45020425526502272-2016-03-29 00:00:001020160310 | | | -+----+-------+---------+----------------------------------------------------------------------------------------------------------------------+--------+--------+ +?.* +?.* --step4: 清理环境; expect: 清理环境成功 drop table if exists t_ustore_ddl_defaultcheck_0007; SQL SUCCESS diff --git a/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005 b/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005 index f896504634365c6bc315453f73d81467be1f3511..52386298646f249eca29a4ac9e56e0c7ec841c57 100644 --- a/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005 +++ b/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005 @@ -1,6 +1,8 @@ -- @owner: lihongji -- @date: 2022-07-18 -- @testpoint: translate-日期类型测试 +-- @modified by: xiaqi14 2024/12/25 研发代码变更,优化用例 + --step1:建表;expect:成功 drop table if exists t_ustore_translate_case0005 ; SQL SUCCESS @@ -46,11 +48,7 @@ call p_ustore_translate_case0005('t_ustore_translate_case0005',1,20); +-----------------------------+ --step6:translate-日期类型测试;expect:成功 select c_date,translate(c_date,'10','真假') c from t_ustore_translate_case0005 order by id limit 1; -+-------------------------------+---------------------+ -| c_date | c | -+-------------------------------+---------------------+ -| 1800-01-01 10:51:47.000000000 | 真8假假-假真-假真 真假:5真:47 | -+-------------------------------+---------------------+ +?.*ERROR: invalid byte sequence for encoding "UTF8": 0xe7 0x38 0x9c --step7:清理环境;expect:成功 drop table if exists t_ustore_translate_case0005 ; SQL SUCCESS diff --git a/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027 b/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027 index 7404ad4ab4f3167eb6a1c84cf5680380551749e0..b30bf852ce9b7fa55ca8546cc6e70f9124ddfe24 100644 --- a/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027 +++ b/openGaussBase/expect/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027 @@ -1,6 +1,8 @@ -- @owner: lihongji -- @date: 2022-07-18 -- @testpoint: translate-测试返回值类型 +-- @modified by: xiaqi14 2024/12/25 研发代码变更返回精度变化,优化用例 + --step1:建表;expect:成功 drop table if exists t_ustore_translate_case0027_01 ; SQL SUCCESS @@ -59,33 +61,33 @@ create table t_ustore_translate_case0027_02 with (storage_type=ustore) as select SQL SUCCESS --step7:查看数据;expect:成功 select * from t_ustore_translate_case0027_02; -+---------------------+ -| c | -+---------------------+ -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -| b.bbbbbbbbbbbbbbb48 | -+---------------------+ ++--------------------+ +| c | ++--------------------+ +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | +| b.bbbbbbbbbbbbbbb5 | ++--------------------+ --step8:清理环境;expect:成功 drop table if exists t_ustore_translate_case0027_01 ; SQL SUCCESS diff --git a/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007.sql b/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007.sql index f78b6db28bfbbf74f86c4206210a5c054170b187..7761612fcffe9b2b3890673207b8955d19f3e915 100644 --- a/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007.sql +++ b/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/DDL/default_check/Opengauss_Function_Ustore_DDL_Defaultcheck_Case0007.sql @@ -1,6 +1,7 @@ -- @owner: @daiguatutu -- @date: 2022-02-26 -- @testpoint: 行级default约束,建立单个约束 ->数值计算/字符串/日期/时间间隔/类型转换 +-- @modified by: xiaqi14 2024/12/25 优化用例,修改回显信息 --step1: 创建表并建立约束; expect: 执行成功 drop table if exists t_ustore_ddl_defaultcheck_0007; diff --git a/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005.sql b/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005.sql index 12540ba168e2752bb9244ed0711bdd7efe1f5c76..a747f04b06c5688f4716b830a7dd42362a0142f8 100644 --- a/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005.sql +++ b/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0005.sql @@ -1,6 +1,7 @@ -- @owner: lihongji -- @date: 2022-07-18 -- @testpoint: translate-日期类型测试 +-- @modified by: xiaqi14 2024/12/25 研发代码变更,优化用例 --step1:建表;expect:成功 drop table if exists t_ustore_translate_case0005 ; diff --git a/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027.sql b/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027.sql index 219e151e052fd059366b296f167c1d960d9918c7..a4c680a78cd3423f3f44a9842854e7a5a6cf0085 100644 --- a/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027.sql +++ b/openGaussBase/testcase/COMPETITIVE/USTORE/SQL_TESTCASE/FUNCTION/translate/Opengauss_Function_Ustore_Translate_Case0027.sql @@ -1,6 +1,7 @@ -- @owner: lihongji -- @date: 2022-07-18 -- @testpoint: translate-测试返回值类型 +-- @modified by: xiaqi14 2024/12/25 研发代码变更返回精度变化,优化用例 --step1:建表;expect:成功 drop table if exists t_ustore_translate_case0027_01 ;