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