From f7c95542077e0f77f90195186bdf293051ca9003 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Tue, 30 Nov 2021 09:15:05 +0800 Subject: [PATCH] fix bug and case issue --- src/client/src/tscSQLParser.c | 1 + src/client/src/tscUtil.c | 2 +- tests/pytest/tag_lite/alter_tag.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 08217d987b..d51d1c50ae 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -9905,3 +9905,4 @@ void normalizeSqlNode(SSqlNode* pSqlNode, const char* dbName) { #endif + \ No newline at end of file diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 0f82dd8d18..62167d9fed 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4409,7 +4409,7 @@ bool tscHasReachLimitation(SQueryInfo* pQueryInfo, SSqlRes* pRes) { char* tscGetErrorMsgPayload(SSqlCmd* pCmd) { return pCmd->payload; } -int32_t tscGetErrorMsgLength(SSqlCmd* pCmd) { return strlen(pCmd->payload); } +int32_t tscGetErrorMsgLength(SSqlCmd* pCmd) { return (int32_t)strlen(pCmd->payload); } /** * If current vnode query does not return results anymore (pRes->numOfRows == 0), try the next vnode if exists, diff --git a/tests/pytest/tag_lite/alter_tag.py b/tests/pytest/tag_lite/alter_tag.py index 9e5abb6c13..c4d738e4cf 100644 --- a/tests/pytest/tag_lite/alter_tag.py +++ b/tests/pytest/tag_lite/alter_tag.py @@ -30,7 +30,7 @@ class TDTestCase: print("==============step1") tdSql.execute( - "CREATE TABLE IF NOT EXISTS ampere (ts TIMESTAMP(8),ampere DOUBLE(8)) TAGS (device_name BINARY(50),build_id BINARY(50),project_id BINARY(50),alias BINARY(50))") + "CREATE TABLE IF NOT EXISTS ampere (ts TIMESTAMP,ampere DOUBLE) TAGS (device_name BINARY(50),build_id BINARY(50),project_id BINARY(50),alias BINARY(50))") tdSql.execute("insert into d1001 using ampere tags('test', '2', '2', '2') VALUES (now, 123)") tdSql.execute("ALTER TABLE ampere ADD TAG variable_id BINARY(50)") -- GitLab