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