[tbase-1316]

This commit is contained in:
hjxilinx 2019-12-10 12:39:01 +08:00
parent 6c860c7393
commit 19d5161690
1 changed files with 4 additions and 1 deletions

View File

@ -447,8 +447,11 @@ static void setErrorInfo(STscObj* pObj, int32_t code, char* info) {
SSqlCmd* pCmd = &pObj->pSql->cmd;
pObj->pSql->res.code = code;
if (info != NULL) {
strncpy(pCmd->payload, info, pCmd->payloadLen);
}
}
TAOS_STREAM *taos_open_stream(TAOS *taos, const char *sqlstr, void (*fp)(void *param, TAOS_RES *, TAOS_ROW row),
int64_t stime, void *param, void (*callback)(void *)) {