From 59fc68dbf196cd68e0e6e80517966c1bb846274d Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Wed, 8 Feb 2023 09:36:01 +0800 Subject: [PATCH 1/3] case: add doulbe comma insert check --- tests/system-test/1-insert/insert_drop.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/system-test/1-insert/insert_drop.py b/tests/system-test/1-insert/insert_drop.py index 029d013d5b..a633d9e9f4 100644 --- a/tests/system-test/1-insert/insert_drop.py +++ b/tests/system-test/1-insert/insert_drop.py @@ -40,6 +40,9 @@ class TDTestCase: self.multiThreadRun(tlist) tdSql.query(f'select * from information_schema.ins_databases') + # double comma insert check error + tdSql.error("insert into test.tb(ts, c11) values(now,,100)") + def stop(self): tdSql.close() From 4bbcfb31519d25245b8547299e706c376746993f Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Wed, 8 Feb 2023 12:11:42 +0800 Subject: [PATCH 2/3] move check sql before drop database --- tests/system-test/1-insert/insert_drop.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/system-test/1-insert/insert_drop.py b/tests/system-test/1-insert/insert_drop.py index a633d9e9f4..4275372d27 100644 --- a/tests/system-test/1-insert/insert_drop.py +++ b/tests/system-test/1-insert/insert_drop.py @@ -31,6 +31,10 @@ class TDTestCase: tdSql.execute('create database if not exists test;') tdSql.execute('create table test.stb (ts timestamp, c11 int, c12 float ) TAGS(t11 int, t12 int );') tdSql.execute('create table test.tb using test.stb TAGS (1, 1);') + + # double comma insert check error + tdSql.error("insert into test.tb(ts, c11) values(now,,100)") + sql_list = list() for i in range(5): sql = f'insert into test.tb values (now-{i}m, {i}, {i});' @@ -40,8 +44,6 @@ class TDTestCase: self.multiThreadRun(tlist) tdSql.query(f'select * from information_schema.ins_databases') - # double comma insert check error - tdSql.error("insert into test.tb(ts, c11) values(now,,100)") def stop(self): From 82deedbaff891960116ce470711acf772bdaddd8 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Wed, 8 Feb 2023 14:13:26 +0800 Subject: [PATCH 3/3] test: remove blank line --- tests/system-test/1-insert/insert_drop.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/system-test/1-insert/insert_drop.py b/tests/system-test/1-insert/insert_drop.py index 4275372d27..930c65d90e 100644 --- a/tests/system-test/1-insert/insert_drop.py +++ b/tests/system-test/1-insert/insert_drop.py @@ -45,7 +45,6 @@ class TDTestCase: tdSql.query(f'select * from information_schema.ins_databases') - def stop(self): tdSql.close() tdLog.success("%s successfully executed" % __file__)