implement complete interval literals
This commit is contained in:
parent
f64632bbac
commit
3b86a06e5c
6 changed files with 64 additions and 37 deletions
Language/SQL/SimpleSQL
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue