提交 20da72c3 编写于 作者: Z zzg19950727 提交者: ob-robot

[CP] fix reconstruct sql for insert all bug

上级 25292988
......@@ -211,7 +211,7 @@ int ObInsertAllStmtPrinter::print_subquery(const ObInsertAllStmt *insert_stmt)
} else {
ObSelectStmtPrinter printer(buf_, buf_len_, pos_,
static_cast<const ObSelectStmt*>(sub_select_stmt),
print_params_, NULL, false);
print_params_, NULL, false, false, true);
if (OB_FAIL(printer.do_print())) {
LOG_WARN("failed to print sub select printer", K(ret));
}
......@@ -256,7 +256,8 @@ int ObInsertAllStmtPrinter::print_into_table_values(const ObInsertAllStmt *inser
DATA_PRINTF("(");
for (int64_t p = 0; OB_SUCC(ret) && p < col_count; ++p) {
if (OB_FAIL(expr_printer_.do_print(table_info.values_vector_.at(k * col_count + p),
T_INSERT_SCOPE))) {
T_INSERT_SCOPE,
true))) {
LOG_WARN("fail to print where expr", K(ret));
} else {
DATA_PRINTF(",");
......
......@@ -231,7 +231,7 @@ int ObInsertStmtPrinter::print_subquery(const ObInsertStmt *insert_stmt)
} else {
ObSelectStmtPrinter printer(buf_, buf_len_, pos_,
static_cast<const ObSelectStmt*>(sub_select_stmt),
print_params_, NULL, false);
print_params_, NULL, false, false, true);
if (OB_FAIL(printer.do_print())) {
LOG_WARN("failed to print sub select printer", K(ret));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册