nene / sql-parser-cst

Parses SQL into Concrete Syntax Tree (CST)
GNU General Public License v2.0
115 stars 7 forks source link

Fails with PostgreSQL table function call with table alias and column definitions #51

Closed nene closed 4 months ago

nene commented 4 months ago

The following should parse, but fails:

SELECT * FROM table_func() AS foo (col1 INT, col2 TEXT)

Similarly with implicit alias:

SELECT * FROM table_func() foo (col1 INT, col2 TEXT)