diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 08217d987ba8570c27829d6bd773b78053031e52..d51d1c50ae85d602c4ccb6ee77935f562fff4480 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 0f82dd8d18b5da45eb3c80e270058f4afd456ac6..62167d9fedbdc67e3422374f4c1e1fc55684681d 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 9e5abb6c134840ecb4ab52c7d3a6ab623885e12b..c4d738e4cf0d9bd63f7813e9d267080f9f045fac 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)")