Skip to content

In sq files, allow escaping raw SQL in where clauses with no parameters #222

@tropikoder

Description

@tropikoder

I'm trying to do this, which has a valid where clause (in Postgres) and I get an error in the where clause. (The error is: "No column found with name age")

Since there are no parameters in the where clause, would it be possible to indicate that the parser should treat it as raw sql?

getPostsPublishedThisWeekCnt:
SELECT count(*) FROM Posts
WHERE age(TIMESTAMP 'epoch' + date_created * INTERVAL '1 millisecond') < INTERVAL '1 week'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions