You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to use a DBType that has no casts around it, or some other technique to make it work? The syntax is similar to CAST, but I see no definition of it in the library. I cannot see neither how to use unsafeLiteral to write it.
The text was updated successfully, but these errors were encountered:
The problem is the casting around each one of the parameters. If there was a way to avoid it, it would be possible to apply the strategy here: tomjaguarpaw/haskell-opaleye#291
If there is interest, I can add a function that does it, maybe just for EXTRACT.
guaraqe
added a commit
to guaraqe/rel8
that referenced
this issue
May 12, 2023
The
EXTRACT
function has a weird syntax, for example:EXTRACT(EPOCH FROM now())
I tried using
function
to write it, but it ends up withCAST
s in places that create syntax errors, namely aroundEPOCH FROM
:Is there any way to use a
DBType
that has no casts around it, or some other technique to make it work? The syntax is similar toCAST
, but I see no definition of it in the library. I cannot see neither how to useunsafeLiteral
to write it.The text was updated successfully, but these errors were encountered: