From b55da7758e98d18044bb4eaa7d50ac1471bffb9a Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 12 Jan 2022 10:55:01 +0800 Subject: [PATCH] [td-11818]remove SParseBasicCtx --- source/libs/parser/test/insertParserTest.cpp | 4 ++-- source/libs/planner/test/phyPlanTests.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/libs/parser/test/insertParserTest.cpp b/source/libs/parser/test/insertParserTest.cpp index 9b007fb36d..86e8b1d7aa 100644 --- a/source/libs/parser/test/insertParserTest.cpp +++ b/source/libs/parser/test/insertParserTest.cpp @@ -43,8 +43,8 @@ protected: void bind(const char* sql) { reset(); - cxt_.ctx.acctId = atoi(acctId_.c_str()); - cxt_.ctx.db = (char*) db_.c_str(); + cxt_.acctId = atoi(acctId_.c_str()); + cxt_.db = (char*) db_.c_str(); strcpy(sqlBuf_, sql); cxt_.sqlLen = strlen(sql); sqlBuf_[cxt_.sqlLen] = '\0'; diff --git a/source/libs/planner/test/phyPlanTests.cpp b/source/libs/planner/test/phyPlanTests.cpp index 2733a73a3f..29f6e48dc7 100644 --- a/source/libs/planner/test/phyPlanTests.cpp +++ b/source/libs/planner/test/phyPlanTests.cpp @@ -135,9 +135,9 @@ private: _sql = sql; memset(_msg, 0, _msgMaxLen); - pCxt->ctx.acctId = 1; - pCxt->ctx.db = _db.c_str(); - pCxt->ctx.requestId = 1; + pCxt->acctId = 1; + pCxt->db = _db.c_str(); + pCxt->requestId = 1; pCxt->pSql = _sql.c_str(); pCxt->sqlLen = _sql.length(); pCxt->pMsg = _msg; -- GitLab