From d98a4b467db365108a66c2a6da9a20bb23d7e4b1 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 7 Jun 2022 15:52:46 +0800 Subject: [PATCH] fix(query): set the schemaless flag. --- source/client/inc/clientInt.h | 2 +- source/client/src/clientMain.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;