fix: fix stmt async issue

This commit is contained in:
dapan1121 2022-06-30 14:00:48 +08:00
parent 56b59105cd
commit e79fcc07f5
1 changed files with 5 additions and 1 deletions

View File

@ -1407,7 +1407,11 @@ void* doAsyncFetchRows(SRequestObj* pRequest, bool setupOneRowPtr, bool convertU
}
SSyncQueryParam* pParam = pRequest->body.param;
if (NULL == pParam) {
pParam = taosMemoryCalloc(1, sizeof(SSyncQueryParam));
tsem_init(&pParam->sem, 0, 0);
}
// convert ucs4 to native multi-bytes string
pResultInfo->convertUcs4 = convertUcs4;