Parsing numeric constant as ObDecimalIntType in oracle compatible mode

This commit is contained in:
Zach41
2023-11-28 15:11:49 +00:00
committed by ob-robot
parent 41fb7a667b
commit 743740102d
28 changed files with 659 additions and 66 deletions

View File

@ -1061,6 +1061,8 @@ int ObPlanSet::match_constraint(const ParamStore &params, bool &is_matched)
} else if (param1.is_float() && param2.is_float()) {
is_matched = (0 == param1.get_float() + param2.get_float()) ||
(param1.get_float() == param2.get_float());
} else if (param1.is_decimal_int() && param2.is_decimal_int()) {
is_matched = wide::abs_equal(param1, param2);
} else if (param1.can_compare(param2) &&
param1.get_collation_type() == param2.get_collation_type()) {
is_matched = (0 == param1.compare(param2));