Skip to content

[Feature Request]: Add Missing PGSQL Functions #437

@elliothomerwilkinson

Description

@elliothomerwilkinson

Topic

Support new SQL

Description

The PostgreSqlLexer.g4 is missing support for common Postgres functions TO_CHAR and DATE_TRUNC

Please can these be added.

This is an issue since basic postgres sql like below is marked as invalid:

SELECT
    TO_CHAR(DATE_TRUNC('week', "my_date"), 'YYYY-MM-DD') as x
FROM test_table;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions