Fix dblink bugs

This commit is contained in:
xianyu-w
2023-04-14 04:11:51 +00:00
committed by ob-robot
parent 941a6da494
commit 76e6f675b5
14 changed files with 52 additions and 52 deletions

View File

@ -45,8 +45,6 @@ int ObMergeStmtPrinter::print()
ret = OB_ERR_UNEXPECTED;
LOG_WARN("stmt_ is NULL or buf_ is NULL or pos_ is NULL", K(ret),
K(stmt_), K(buf_), K(pos_));
} else if (print_params_.print_with_cte_ && OB_FAIL(print_cte_define())) {
LOG_WARN("failed to print cte", K(ret));
} else {
const ObMergeStmt *merge_stmt = static_cast<const ObMergeStmt *>(stmt_);
const TableItem *target_table = NULL;
@ -60,8 +58,7 @@ int ObMergeStmtPrinter::print()
LOG_WARN("target table or source table is null",
K(ret), K(target_table), K(source_table));
}
if (OB_SUCC(ret) && (print_params_.force_print_cte_ || print_params_.print_with_cte_) &&
OB_FAIL(print_cte_define())) {
if (OB_SUCC(ret) && OB_FAIL(print_temp_table_as_cte())) {
LOG_WARN("failed to print cte", K(ret));
}
DATA_PRINTF("merge ");