We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc5cf4 commit f08573fCopy full SHA for f08573f
sql/expression/arithmetic.go
@@ -757,7 +757,7 @@ func (e *UnaryMinus) Type() sql.Type {
757
typ = types.Int64
758
case types.Int64:
759
if lit, ok := e.Child.(*Literal); ok {
760
- // nil val at this stage is possible on NULL cast
+ // lit.Value() can be nil
761
if v, ok := lit.Value().(int64); ok && v == math.MinInt64 {
762
return types.InternalDecimalType
763
}
0 commit comments