Fix failed mysqltests

This commit is contained in:
2149
2023-06-26 12:42:38 +00:00
committed by ob-robot
parent 9d8f21e540
commit a222f4d4c9

View File

@ -1757,10 +1757,11 @@ int ObQueryRange::get_column_key_part(const ObRawExpr *l_expr,
out_key_part->id_ = id; out_key_part->id_ = id;
out_key_part->pos_ = *pos; out_key_part->pos_ = *pos;
out_key_part->null_safe_ = (T_OP_NSEQ == c_type); out_key_part->null_safe_ = (T_OP_NSEQ == c_type);
if (!const_expr->cnt_param_expr() if ((!const_expr->cnt_param_expr()
|| (!const_expr->has_flag(CNT_DYNAMIC_PARAM) || (!const_expr->has_flag(CNT_DYNAMIC_PARAM)
&& T_OP_LIKE == c_type && T_OP_LIKE == c_type
&& NULL != query_range_ctx_->params_)) { && NULL != query_range_ctx_->params_))
&& !const_expr->has_flag(CNT_LAST_INSERT_ID)) {
val = const_val; val = const_val;
} else { } else {
if (OB_FAIL(get_final_expr_val(const_expr, val))) { if (OB_FAIL(get_final_expr_val(const_expr, val))) {