fix CTE in mysql mode bug

This commit is contained in:
st0
2022-01-24 15:57:49 +08:00
committed by LINxiansheng
parent 568b45a826
commit d6fa144191
8 changed files with 51 additions and 26 deletions

View File

@ -825,7 +825,7 @@ int ObSelectStmtPrinter::print_for_update()
int ObSelectStmtPrinter::print_with()
{
int ret = OB_SUCCESS;
DATA_PRINTF("WITH ");
DATA_PRINTF(is_oracle_mode() ? "WITH " : "WITH RECURSIVE");
if (OB_SUCC(ret)) {
const ObSelectStmt* select_stmt = static_cast<const ObSelectStmt*>(stmt_);
const common::ObIArray<TableItem*>& cte_tables = select_stmt->get_CTE_table_items();