Fix udt bugs
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user