Expected Behaviour
[yesh|
-- name: getMytable :: ()
select *, now() - '1 hour ago'::interval from mytable;
|]
should generate
select *, now() - '1 hour ago'::interval from mytable;
Actual Behaviour
select *, now() - '1 hour ago'
My guess is yeshql is detecting :: in queries. I thought it would only use those in comments(--)
For now I am using cast directly.
I would have liked to send a patch but I know close to nothing of neither template-haskell not QuasiQuoting