Skip to content

Yeshql cannot handle :: cast in postgresql #7

@noxecane

Description

@noxecane

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions