This commit is contained in:
Shengliang Guan 2020-08-09 22:59:42 +08:00
parent ceab359b91
commit a9cabb54fa
1 changed files with 1 additions and 0 deletions

View File

@ -256,6 +256,7 @@ TAOS_RES* taos_query(TAOS *taos, const char *sqlstr) {
return NULL;
}
tsem_init(&pSql->rspSem, 0, 0);
doAsyncQuery(pObj, pSql, waitForQueryRsp, taos, sqlstr, sqlLen);
// wait for the callback function to post the semaphore