From 0531b23ae0b69343f1658727bd37150d09727a48 Mon Sep 17 00:00:00 2001 From: guo-shaoge Date: Mon, 27 May 2024 19:36:53 +0800 Subject: [PATCH] comment Signed-off-by: guo-shaoge --- pkg/expression/builtin_compare.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/expression/builtin_compare.go b/pkg/expression/builtin_compare.go index 370f94bd5c925..ec771ad9ee8aa 100644 --- a/pkg/expression/builtin_compare.go +++ b/pkg/expression/builtin_compare.go @@ -1428,7 +1428,7 @@ func RefineComparedConstant(ctx BuildContext, targetFieldType types.FieldType, c targetFieldType = *types.NewFieldType(mysql.TypeLonglong) } var intDatum types.Datum - // Enable AllowNegativeToUnsigned to make sure return 0 when underflow happens. + // Disable AllowNegativeToUnsigned to make sure return 0 when underflow happens. oriTypeCtx := evalCtx.TypeCtx() newTypeCtx := oriTypeCtx.WithFlags(oriTypeCtx.Flags().WithAllowNegativeToUnsigned(false)) intDatum, err = dt.ConvertTo(newTypeCtx, &targetFieldType)