[to #48421952] fix question_mark equal test with pl extend

This commit is contained in:
obdev
2023-03-15 12:11:03 +00:00
committed by ob-robot
parent a5104c5255
commit 5d0186e152

View File

@ -21,6 +21,9 @@ bool ObQuestionmarkEqualCtx::compare_const(const ObConstRawExpr &left,
bool bret = false;
if (left.get_expr_type() != right.get_expr_type() ||
left.get_result_type() != right.get_result_type() ||
(left.get_result_type().is_ext()
&& left.get_result_type().get_extend_type() > 0
&& left.get_result_type().get_extend_type() < T_EXT_SQL_ARRAY) ||
OB_SUCCESS != err_code_) {
// do nothing
} else if (left.get_expr_type() != T_QUESTIONMARK) {