From a95baab68f67c103dbd7b64b1e3bc96f3d10abe5 Mon Sep 17 00:00:00 2001 From: jiacy-jcy Date: Tue, 14 Jun 2022 18:34:48 +0800 Subject: [PATCH] update --- tests/system-test/1-insert/alter_table.py | 10 +++++----- tests/system-test/2-query/bottom.py | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/system-test/1-insert/alter_table.py b/tests/system-test/1-insert/alter_table.py index ec3e771cbd..3c17d9525e 100644 --- a/tests/system-test/1-insert/alter_table.py +++ b/tests/system-test/1-insert/alter_table.py @@ -90,13 +90,13 @@ class TDTestCase: tdSql.checkData(0,15,tag_nchar) # bug TD-16211 insert length more than setting binary and nchar - # tag_binary = self.get_long_name(length=21, mode="letters") - # tag_nchar = self.get_long_name(length=21, mode="letters") - # tdSql.error(f'alter table {dbname}.{tbname} set tag t12 = "{tag_binary}"') - # tdSql.error(f'alter table {dbname}.{tbname} set tag t13 = "{tag_nchar}"') + tag_binary = self.get_long_name(length=21, mode="letters") + tag_nchar = self.get_long_name(length=21, mode="letters") + tdSql.error(f'alter table {dbname}.{tbname} set tag t12 = "{tag_binary}"') + tdSql.error(f'alter table {dbname}.{tbname} set tag t13 = "{tag_nchar}"') # bug TD-16210 modify binary to nchar - # tdSql.error(f'alter table {dbname}.{tbname} modify tag t12 nchar(10)') + tdSql.error(f'alter table {dbname}.{tbname} modify tag t12 nchar(10)') tdSql.execute(f"drop database {dbname}") def alter_ntb_column_check(self): ''' diff --git a/tests/system-test/2-query/bottom.py b/tests/system-test/2-query/bottom.py index 5620975ef2..3c82dd4128 100644 --- a/tests/system-test/2-query/bottom.py +++ b/tests/system-test/2-query/bottom.py @@ -46,10 +46,10 @@ class TDTestCase: tdSql.error(f'select bottom({i},{j}) from stb_1') for i in error_column_list: tdSql.error(f'select bottom({i},10) from stb_1') - # tdSql.query("select ts,bottom(col1, 2),ts from stb_1 group by tbname") - # tdSql.checkRows(2) - # tdSql.query('select bottom(col2,1) from stb_1 interval(1y) order by col2') - # tdSql.checkData(0,0,1) + tdSql.query("select ts,bottom(col1, 2),ts from stb_1 group by tbname") + tdSql.checkRows(2) + tdSql.query('select bottom(col2,1) from stb_1 interval(1y) order by col2') + tdSql.checkData(0,0,1) tdSql.error('select * from stb_1 where bottom(col2,1)=1') -- GitLab