diff --git a/source/client/inc/clientInt.h b/source/client/inc/clientInt.h index 4ba74af5e6..3a6f3badc0 100644 --- a/source/client/inc/clientInt.h +++ b/source/client/inc/clientInt.h @@ -144,7 +144,7 @@ typedef struct STscObj { int32_t numOfReqs; // number of sqlObj bound to this connection SAppInstInfo* pAppInfo; SHashObj* pRequests; - int8_t schemalessType; + int8_t schemalessType; // todo remove it, this attribute should be move to request } STscObj; typedef struct SResultColumn { diff --git a/source/client/src/clientMain.c b/source/client/src/clientMain.c index 3ca93d178c..1a1925e244 100644 --- a/source/client/src/clientMain.c +++ b/source/client/src/clientMain.c @@ -697,6 +697,7 @@ int32_t createParseContext(const SRequestObj *pRequest, SParseContext** pCxt) { .pTransporter = pTscObj->pAppInfo->pTransporter, .pStmtCb = NULL, .pUser = pTscObj->user, + .schemalessType = pTscObj->schemalessType, .isSuperUser = (0 == strcmp(pTscObj->user, TSDB_DEFAULT_USER)), .async = true,}; return TSDB_CODE_SUCCESS;