Fix type deduction error of mod expression

This commit is contained in:
obdev
2024-02-09 23:05:02 +00:00
committed by ob-robot
parent 424f18e48e
commit 8f9bf223e8

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*/