[FEAT MERGE]4_1_sql_feature

Co-authored-by: leslieyuchen <leslieyuchen@gmail.com>
Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: raywill <hustos@gmail.com>
This commit is contained in:
obdev
2023-01-28 16:01:26 +08:00
committed by ob-robot
parent 3080f2b66f
commit 2d19a9d8f5
846 changed files with 161957 additions and 116661 deletions

View File

@ -93,6 +93,7 @@ bool TestResolver::is_show_sql(const ParseNode &node) const
case T_SHOW_SERVER_STATUS:
case T_SHOW_WARNINGS:
case T_SHOW_RESTORE_PREVIEW:
case T_SHOW_SEQUENCES:
case T_SHOW_GRANTS:{
ret = true;
break;
@ -587,7 +588,7 @@ void TestResolver::do_stmt_tostring_test() {
memset(buffer, '\0', OB_MAX_SQL_LENGTH);
int64_t pos = 0;
ObSelectStmtPrinter stmt_printer(buffer, OB_MAX_SQL_LENGTH, &pos,
static_cast<ObSelectStmt*>(stmt), ObObjPrintParams(), NULL, false);
static_cast<ObSelectStmt*>(stmt), ObObjPrintParams());
stmt_printer.do_print();
buffer[pos] = '\0';
of_tmp << "*************** Case "<< ++case_id << " ***************" << std::endl;