From 2248305576e1a0c3df8f20465efaf8f1a0f8fb95 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 4 Feb 2025 11:07:31 +0800 Subject: [PATCH] fix: some bugs fixed --- tests/army/tools/taosdump/ws/taosdumpTestTypeBinary.py | 4 ++-- tests/army/tools/taosdump/ws/taosdumpTestTypeFloat.py | 4 ++-- tests/army/tools/taosdump/ws/taosdumpTestTypeJson.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/army/tools/taosdump/ws/taosdumpTestTypeBinary.py b/tests/army/tools/taosdump/ws/taosdumpTestTypeBinary.py index eeab8f77c7..d11618e899 100644 --- a/tests/army/tools/taosdump/ws/taosdumpTestTypeBinary.py +++ b/tests/army/tools/taosdump/ws/taosdumpTestTypeBinary.py @@ -37,10 +37,10 @@ class TDTestCase(TBase): tdSql.execute( "create table db.st(ts timestamp, c1 BINARY(5), c2 BINARY(5)) tags(btag BINARY(5))" ) - tdSql.execute("create table db.t1 using db.sttags('test')") + tdSql.execute("create table db.t1 using db.st tags('test')") tdSql.execute("insert into db.t1 values(1640000000000, '01234', '56789')") tdSql.execute("insert into db.t1 values(1640000000001, 'abcd', 'efgh')") - tdSql.execute("create table db.t2 using db.sttags(NULL)") + tdSql.execute("create table db.t2 using db.st tags(NULL)") tdSql.execute("insert into db.t2 values(1640000000000, NULL, NULL)") binPath = etool.taosDumpFile() diff --git a/tests/army/tools/taosdump/ws/taosdumpTestTypeFloat.py b/tests/army/tools/taosdump/ws/taosdumpTestTypeFloat.py index bdb4df7473..0ac022e8f9 100644 --- a/tests/army/tools/taosdump/ws/taosdumpTestTypeFloat.py +++ b/tests/army/tools/taosdump/ws/taosdumpTestTypeFloat.py @@ -36,8 +36,8 @@ class TDTestCase(TBase): tdSql.execute("use db") tdSql.execute("create table db.st(ts timestamp, c1 FLOAT) tags(ftag FLOAT)") - tdSql.execute("create table db.db.t1 using db.st tags(1.0)") - tdSql.execute("insert into db.db.t1 values(1640000000000, 1.0)") + tdSql.execute("create table db.t1 using db.st tags(1.0)") + tdSql.execute("insert into db.t1 values(1640000000000, 1.0)") tdSql.execute("create table db.t2 using db.st tags(3.40E+38)") tdSql.execute("insert into db.t2 values(1640000000000, 3.40E+38)") diff --git a/tests/army/tools/taosdump/ws/taosdumpTestTypeJson.py b/tests/army/tools/taosdump/ws/taosdumpTestTypeJson.py index fcbf428ac4..cfba03c5eb 100644 --- a/tests/army/tools/taosdump/ws/taosdumpTestTypeJson.py +++ b/tests/army/tools/taosdump/ws/taosdumpTestTypeJson.py @@ -101,7 +101,7 @@ class TDTestCase(TBase): print(dbresult) found = False for i in range(len(dbresult)): - if dbresult[i][0] == "beijing": + if dbresult[i][0] == '"beijing"': found = True break