hssqlppp
hssqlppp copied to clipboard
Explicit type signatures fail to parse
E.g.,
> parseQueryExpr defaultParseFlags "" Nothing "select 'a' :: text"
Left (line 1, column 12):
unexpected (("",1,12),Symbol ":")
expecting operator or end of input
cannot make functioncall from StringLit (Annotation {anSrc = Just ("",1,8), anType = Nothing, anErrs = [], anImplicitCast = Nothing, anCatUpd = []}) "a"
:1:12:
Context:
select 'a' :: text
^
ERROR HERE
Does it work if you use the postgresDialect in the parse flags? The default dialect is ANSI which doesn't support this syntax for casts. The dialect support is a bit flakey at the moment.
Already moved on to another solution. Sorry