enh(stmt2/gettbname): ignore tbname not set error

This commit is contained in:
Minglei Jin 2024-09-13 12:32:25 +08:00
parent ab7d7353d3
commit 987e086918
1 changed files with 6 additions and 1 deletions

View File

@ -1888,7 +1888,12 @@ int stmtGetParamTbName(TAOS_STMT2* stmt, int* nums) {
STMT_ERR_RET(stmtParseSql(pStmt)); STMT_ERR_RET(stmtParseSql(pStmt));
} }
if (TSDB_CODE_TSC_STMT_TBNAME_ERROR == pStmt->errCode) {
*nums = 1;
pStmt->errCode = TSDB_CODE_SUCCESS;
} else {
*nums = STMT_TYPE_MULTI_INSERT == pStmt->sql.type ? 1 : 0; *nums = STMT_TYPE_MULTI_INSERT == pStmt->sql.type ? 1 : 0;
}
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
} }