fix: merge conflict
This commit is contained in:
parent
9e5274df99
commit
eff1b07886
|
@ -38,13 +38,13 @@
|
||||||
} while (TK_NK_SPACE == (token).type)
|
} while (TK_NK_SPACE == (token).type)
|
||||||
|
|
||||||
typedef struct SInsertParseContext {
|
typedef struct SInsertParseContext {
|
||||||
SParseContext* pComCxt;
|
SParseContext* pComCxt;
|
||||||
SMsgBuf msg;
|
SMsgBuf msg;
|
||||||
char tmpTokenBuf[TSDB_MAX_BYTES_PER_ROW];
|
char tmpTokenBuf[TSDB_MAX_BYTES_PER_ROW];
|
||||||
SParsedDataColInfo tags; // for stmt
|
SBoundColInfo tags; // for stmt
|
||||||
bool missCache;
|
bool missCache;
|
||||||
bool usingDuplicateTable;
|
bool usingDuplicateTable;
|
||||||
bool forceUpdate;
|
bool forceUpdate;
|
||||||
} SInsertParseContext;
|
} SInsertParseContext;
|
||||||
|
|
||||||
typedef int32_t (*_row_append_fn_t)(SMsgBuf* pMsgBuf, const void* value, int32_t len, void* param);
|
typedef int32_t (*_row_append_fn_t)(SMsgBuf* pMsgBuf, const void* value, int32_t len, void* param);
|
||||||
|
@ -1846,13 +1846,11 @@ static int32_t setNextStageInfo(SInsertParseContext* pCxt, SQuery* pQuery, SCata
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t parseInsertSql(SParseContext* pCxt, SQuery** pQuery, SCatalogReq* pCatalogReq, const SMetaData* pMetaData) {
|
int32_t parseInsertSql(SParseContext* pCxt, SQuery** pQuery, SCatalogReq* pCatalogReq, const SMetaData* pMetaData) {
|
||||||
SInsertParseContext context = {
|
SInsertParseContext context = {.pComCxt = pCxt,
|
||||||
.pComCxt = pCxt,
|
.msg = {.buf = pCxt->pMsg, .len = pCxt->msgLen},
|
||||||
.msg = {.buf = pCxt->pMsg, .len = pCxt->msgLen},
|
.missCache = false,
|
||||||
.missCache = false,
|
.usingDuplicateTable = false,
|
||||||
.usingDuplicateTable = false,
|
.forceUpdate = (NULL != pCatalogReq ? pCatalogReq->forceUpdate : false)};
|
||||||
.forceUpdate = (NULL != pCatalogReq ? pCatalogReq->forceUpdate : false)
|
|
||||||
};
|
|
||||||
|
|
||||||
int32_t code = initInsertQuery(&context, pCatalogReq, pMetaData, pQuery);
|
int32_t code = initInsertQuery(&context, pCatalogReq, pMetaData, pQuery);
|
||||||
if (TSDB_CODE_SUCCESS == code) {
|
if (TSDB_CODE_SUCCESS == code) {
|
||||||
|
|
Loading…
Reference in New Issue