Fix remote execution error 4016

This commit is contained in:
obdev
2022-12-06 07:40:12 +00:00
committed by ob-robot
parent 196359d85f
commit e01e420726
7 changed files with 22 additions and 5 deletions

View File

@ -2373,7 +2373,7 @@ int ObSelectResolver::is_need_check_col_dup(const ObRawExpr *expr, bool &need_ch
if (OB_ISNULL(expr)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("is null", K(ret));
} else if (!params_.is_prepare_protocol_ || !params_.is_by_ordinal_) {
} else if (params_.need_check_col_dup_) {
need_check = true;
} else if (T_QUESTIONMARK == expr->get_expr_type()) {
need_check = false;

View File

@ -341,7 +341,7 @@ struct ObResolverParams
hidden_column_scope_(T_NONE_SCOPE),
outline_parse_result_(NULL),
is_execute_call_stmt_(false),
is_by_ordinal_(false)
need_check_col_dup_(true)
{}
bool is_force_trace_log() { return force_trace_log_; }
@ -404,7 +404,7 @@ public:
ObStmtScope hidden_column_scope_; // record scope for first hidden column which need check hidden_column_visable in opt_param hint
ParseResult *outline_parse_result_;
bool is_execute_call_stmt_;
bool is_by_ordinal_;
bool need_check_col_dup_;
};
} // end namespace sql
} // end namespace oceanbase