1
Fork 0

implement complete interval literals

This commit is contained in:
Jake Wheat 2014-04-18 21:38:24 +03:00
parent f64632bbac
commit 3b86a06e5c
6 changed files with 64 additions and 37 deletions
Language/SQL/SimpleSQL

View file

@ -59,9 +59,10 @@
> -- | text of interval literal, units of interval precision,
> -- e.g. interval 3 days (3)
> | IntervalLit
> {ilLiteral :: String -- ^ literal text
> ,ilUnits :: String -- ^ units
> ,ilPrecision :: Maybe Integer -- ^ precision
> {ilSign :: Maybe Bool -- ^ true if + used, false if - used
> ,ilLiteral :: String -- ^ literal text
> ,ilFrom :: IntervalTypeField
> ,ilTo :: Maybe IntervalTypeField
> }
> -- | identifier with parts separated by dots
> | Iden [Name]