1
Fork 0

add support for oracle type size units 'char' and 'byte', example: varchar2(55 byte)

This commit is contained in:
Jake Wheat 2016-08-10 11:27:30 +03:00
parent b23f3aaa07
commit ff3dcb814c
4 changed files with 36 additions and 0 deletions
Language/SQL/SimpleSQL

View file

@ -490,7 +490,11 @@ factoring in this function, and it is a little dense.
> <|> PrecT <$ keyword_ "t"
> <|> PrecP <$ keyword_ "p"
> lobUnits = PrecCharacters <$ keyword_ "characters"
> -- char and byte are the oracle spelling
> -- todo: move these to oracle dialect
> <|> PrecCharacters <$ keyword_ "char"
> <|> PrecOctets <$ keyword_ "octets"
> <|> PrecOctets <$ keyword_ "byte"
> tz = True <$ keywords_ ["with", "time","zone"]
> <|> False <$ keywords_ ["without", "time","zone"]
> charSet = keywords_ ["character", "set"] *> names