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

@ -360,12 +360,10 @@ int ObVariableSetExecutor::calc_subquery_expr_value(ObExecContext &ctx,
ObSqlString tmp_expr_subquery;
ObSqlString expr_subquery;
ObObjPrintParams print_params(session_info->get_timezone_info());
print_params.print_with_cte_ = true;
print_params.force_print_cte_ = true;
print_params.need_print_converter_ = false;
ObRawExprPrinter expr_printer(expr_str_buf, OB_MAX_DEFAULT_VALUE_LENGTH,
&pos, ctx.get_sql_ctx()->schema_guard_, print_params);
if (OB_FAIL(expr_printer.do_print(expr, T_NONE_SCOPE, true))) {
if (OB_FAIL(expr_printer.do_print(expr, T_NONE_SCOPE, true, true))) {
LOG_WARN("print expr definition failed", K(ret));
} else if (OB_FAIL(tmp_expr_subquery.assign_fmt("select %.*s from dual",
static_cast<int32_t>(pos), expr_str_buf))) {