From b87add1b589eee3b97b2af06cfe9a6cb2f9ee17e Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 25 Apr 2021 22:01:03 +0800 Subject: [PATCH] [td-225]fix compiler error. --- src/client/src/tscSQLParser.c | 2 +- src/client/src/tscServer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index a13cbe9e93..8265b2a33d 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -7240,7 +7240,7 @@ int32_t validateSqlNode(SSqlObj* pSql, SSqlNode* pSqlNode, int32_t index) { } // set all query tables, which are maybe more than one. - code = doLoadAllTableMeta(pSql, index, pSqlNode, fromSize); + code = doLoadAllTableMeta(pSql, index, pSqlNode, (int32_t) fromSize); if (code != TSDB_CODE_SUCCESS) { return code; } diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 931a846cb5..d84f93a73b 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -825,7 +825,7 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) { SQueryInfo *pQueryInfo = tscGetActiveQueryInfo(pCmd); - SQueryAttr query = {0}; + SQueryAttr query = {{0}}; tscCreateQueryFromQueryInfo(pQueryInfo, &query, pSql); SArray* tableScanOperator = createTableScanPlan(&query); -- GitLab