Fix udt bugs

This commit is contained in:
xianyu-w
2023-01-12 04:41:53 +00:00
committed by ob-robot
parent d6d16b62f1
commit 87e368c52f
44 changed files with 203 additions and 84 deletions

View File

@ -37,7 +37,7 @@ int ObInsertAllStmtPrinter::do_print()
ret = OB_ERR_UNEXPECTED;
LOG_WARN("stmt should not be NULL", K(ret));
} else {
expr_printer_.init(buf_, buf_len_, pos_, print_params_);
expr_printer_.init(buf_, buf_len_, pos_, schema_guard_, print_params_);
if (OB_FAIL(print())) {
LOG_WARN("fail to print stmt", K(ret));
}
@ -211,6 +211,7 @@ int ObInsertAllStmtPrinter::print_subquery(const ObInsertAllStmt *insert_stmt)
} else {
ObSelectStmtPrinter printer(buf_, buf_len_, pos_,
static_cast<const ObSelectStmt*>(sub_select_stmt),
schema_guard_,
print_params_, NULL, false, false, true);
if (OB_FAIL(printer.do_print())) {
LOG_WARN("failed to print sub select printer", K(ret));