Skip to content

Commit f08573f

Browse files
elianddbjycor
andauthored
Apply suggestion from @jycor
Co-authored-by: James Cor <jcor@ucsd.edu>
1 parent 5bc5cf4 commit f08573f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/expression/arithmetic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ func (e *UnaryMinus) Type() sql.Type {
757757
typ = types.Int64
758758
case types.Int64:
759759
if lit, ok := e.Child.(*Literal); ok {
760-
// nil val at this stage is possible on NULL cast
760+
// lit.Value() can be nil
761761
if v, ok := lit.Value().(int64); ok && v == math.MinInt64 {
762762
return types.InternalDecimalType
763763
}

0 commit comments

Comments
 (0)