diff --git a/sql/scanner.go b/sql/scanner.go index 8d50c0f7..c0da5390 100644 --- a/sql/scanner.go +++ b/sql/scanner.go @@ -547,6 +547,10 @@ func (s *scanner) scanNumber(chp ...rune) (tok Token, lit string, val interface{ } } + if val, err := time.ParseDuration(buf.String()); err == nil { + return DURATION, buf.String(), val + } + return tok, buf.String(), nil }