Fix type deduction error of mod expression

This commit is contained in:
Zach41
2024-01-23 06:52:39 +00:00
committed by ob-robot
parent 09783e6993
commit cda6fbfc56

View File

@ -382,7 +382,7 @@ static ObObjType MOD_RESULT_TYPE[ObMaxType][ObMaxType] =
ObDoubleType, /* ObJsonType */ ObDoubleType, /* ObJsonType */
ObMaxType, /* ObGeometryType */ ObMaxType, /* ObGeometryType */
ObMaxType, /* ObUserDefinedSQLType */ ObMaxType, /* ObUserDefinedSQLType */
ObUNumberType, /* ObDecimalIntType */ ObDecimalIntType, /* ObDecimalIntType */
}, },
/*USmallIntType*/ /*USmallIntType*/
@ -437,7 +437,7 @@ static ObObjType MOD_RESULT_TYPE[ObMaxType][ObMaxType] =
ObDoubleType, /* ObJsonType */ ObDoubleType, /* ObJsonType */
ObMaxType, /* ObGeometryType */ ObMaxType, /* ObGeometryType */
ObMaxType, /* ObUserDefinedSQLType */ ObMaxType, /* ObUserDefinedSQLType */
ObUNumberType, /* ObDecimalIntType */ ObDecimalIntType, /* ObDecimalIntType */
}, },
/*UMediumIntType*/ /*UMediumIntType*/
@ -492,7 +492,7 @@ static ObObjType MOD_RESULT_TYPE[ObMaxType][ObMaxType] =
ObDoubleType, /* ObJsonType */ ObDoubleType, /* ObJsonType */
ObMaxType, /* ObGeometryType */ ObMaxType, /* ObGeometryType */
ObMaxType, /* ObUserDefinedSQLType */ ObMaxType, /* ObUserDefinedSQLType */
ObUNumberType, /* ObDecimalIntType */ ObDecimalIntType, /* ObDecimalIntType */
}, },
/*UInt32Type*/ /*UInt32Type*/
@ -547,7 +547,7 @@ static ObObjType MOD_RESULT_TYPE[ObMaxType][ObMaxType] =
ObDoubleType, /* ObJsonType */ ObDoubleType, /* ObJsonType */
ObMaxType, /* ObGeometryType */ ObMaxType, /* ObGeometryType */
ObMaxType, /* ObUserDefinedSQLType */ ObMaxType, /* ObUserDefinedSQLType */
ObUNumberType, /* ObDecimalIntType */ ObDecimalIntType, /* ObDecimalIntType */
}, },
/*UIntType*/ /*UIntType*/
@ -602,7 +602,7 @@ static ObObjType MOD_RESULT_TYPE[ObMaxType][ObMaxType] =
ObDoubleType, /* ObJsonType */ ObDoubleType, /* ObJsonType */
ObMaxType, /* ObGeometryType */ ObMaxType, /* ObGeometryType */
ObMaxType, /* ObUserDefinedSQLType */ ObMaxType, /* ObUserDefinedSQLType */
ObUNumberType, /* ObDecimalIntType */ ObDecimalIntType, /* ObDecimalIntType */
}, },
/*FloatType*/ /*FloatType*/