[td-225]
This commit is contained in:
parent
9d82654dfc
commit
7062f0e02e
|
@ -1674,6 +1674,14 @@ SSqlObj* createSimpleSubObj(SSqlObj* pSql, void (*fp)(), void* param, int32_t cm
|
||||||
pNew->param = param;
|
pNew->param = param;
|
||||||
pNew->maxRetry = TSDB_MAX_REPLICA_NUM;
|
pNew->maxRetry = TSDB_MAX_REPLICA_NUM;
|
||||||
|
|
||||||
|
pNew->sqlstr = strdup(pSql->sqlstr);
|
||||||
|
if (pNew->sqlstr == NULL) {
|
||||||
|
tscError("%p new subquery failed", pSql);
|
||||||
|
|
||||||
|
free(pNew);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
SQueryInfo* pQueryInfo = NULL;
|
SQueryInfo* pQueryInfo = NULL;
|
||||||
tscGetQueryInfoDetailSafely(pCmd, 0, &pQueryInfo);
|
tscGetQueryInfoDetailSafely(pCmd, 0, &pQueryInfo);
|
||||||
|
|
||||||
|
@ -1697,6 +1705,14 @@ SSqlObj* createSubqueryObj(SSqlObj* pSql, int16_t tableIndex, void (*fp)(), void
|
||||||
pNew->pTscObj = pSql->pTscObj;
|
pNew->pTscObj = pSql->pTscObj;
|
||||||
pNew->signature = pNew;
|
pNew->signature = pNew;
|
||||||
|
|
||||||
|
pNew->sqlstr = strdup(pSql->sqlstr);
|
||||||
|
if (pNew->sqlstr == NULL) {
|
||||||
|
tscError("%p new subquery failed, tableIndex:%d, vgroupIndex:%d", pSql, tableIndex, pTableMetaInfo->vgroupIndex);
|
||||||
|
|
||||||
|
free(pNew);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
SSqlCmd* pnCmd = &pNew->cmd;
|
SSqlCmd* pnCmd = &pNew->cmd;
|
||||||
memcpy(pnCmd, pCmd, sizeof(SSqlCmd));
|
memcpy(pnCmd, pCmd, sizeof(SSqlCmd));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue