From 53fcbc48f522405a05c242fe7cbb224d8598da85 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Sat, 4 Dec 2021 19:30:52 +0800 Subject: [PATCH] fix build error --- src/client/src/tscStream.c | 2 +- tests/pytest/stream/new.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/src/tscStream.c b/src/client/src/tscStream.c index 4f20bee97e..7d0dc2e4b1 100644 --- a/src/client/src/tscStream.c +++ b/src/client/src/tscStream.c @@ -400,7 +400,7 @@ bool sendChildTalbe(TAOS *taos, char *superName, char *tableName, TAOS_FIELD *fi // init reset strcpy(sqlBuf, STR_SQL_INSERT); - preLen = strlen(sqlBuf); + preLen = (int32_t)strlen(sqlBuf); subBuf = sqlBuf + preLen; subLen = bufLen - preLen; sprintf(subBuf, " %s using %s tags(0) values ", dbTable, superName); diff --git a/tests/pytest/stream/new.py b/tests/pytest/stream/new.py index 25e1fa718c..499cc5839d 100644 --- a/tests/pytest/stream/new.py +++ b/tests/pytest/stream/new.py @@ -34,7 +34,7 @@ class TDTestCase: for i in range(5): tdSql.execute("create table tb%d using mt tags(%d)" % (i, i)) for j in range(rowNum): - tdSql.execute("insert into tb%d values(%d + %ds, %d, %d)" % (start, i, j, j, j)) + tdSql.execute("insert into tb%d values(%d + %ds, %d, %d)" % (i,start,j, j, j)) time.sleep(0.1) tdLog.info("=============== step2") @@ -53,7 +53,7 @@ class TDTestCase: for i in range(5, 10): tdSql.execute("create table tb%d using mt tags(%d)" % (i, i)) for j in range(rowNum): - tdSql.execute("insert into tb%d values(%d + %ds, %d, %d)" % (start, i, j, j, j)) + tdSql.execute("insert into tb%d values(%d + %ds, %d, %d)" % (i,start,j, j, j)) tdLog.info("=============== step5") maxValue = 0 -- GitLab