stmt reqid incr one

This commit is contained in:
yihaoDeng 2022-11-04 15:54:46 +08:00
parent 69afe77ed9
commit 9610efbdf4
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ static int32_t stmtCreateRequest(STscStmt* pStmt) {
if (pStmt->exec.pRequest == NULL) {
code = buildRequest(pStmt->taos->id, pStmt->sql.sqlStr, pStmt->sql.sqlLen, NULL, false, &pStmt->exec.pRequest,
pStmt->reqid);
if (pStmt->reqid > 0) {
pStmt->reqid++;
}
if (TSDB_CODE_SUCCESS == code) {
pStmt->exec.pRequest->syncQuery = true;
}