[td-225]fix compiler error.

This commit is contained in:
Haojun Liao 2021-04-25 22:01:03 +08:00
parent c9c71a8520
commit b87add1b58
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);