Closed
Description
Postgres supports specifying column names AND types in a table alias (after AS) for functions that return values of type "record".
The following syntax is valid in postgres
SELECT * FROM jsonb_to_record('{"a": "x", "b": 2}'::jsonb) AS x(a TEXT, b INT);
But in sqlparser, it returns
Expected: ), found: TEXT
This was initially reported in SQLPage, as: sqlpage/SQLPage#690
Metadata
Metadata
Assignees
Labels
No labels