Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support lateral joins #122

Closed
akg1 opened this issue Jan 3, 2023 · 0 comments · Fixed by #149 or secam/pgsql-ast-parser#2
Closed

Does not support lateral joins #122

akg1 opened this issue Jan 3, 2023 · 0 comments · Fixed by #149 or secam/pgsql-ast-parser#2

Comments

@akg1
Copy link

akg1 commented Jan 3, 2023

Any query using lateral joins, eg:

select 
    *
from
    test
inner join lateral (
    select 
        *
    from 
        test2
    where 
        test2.foo = test1.bar
) test2_inner on true

Doesn't work.

airhorns added a commit to airhorns/pgsql-ast-parser that referenced this issue Dec 15, 2023
Postgres has a LATERAL keyword that modifies one of the `from_item`s in a selection. It doesn't have to be an explicit join statement but is most often used as such. This adds support for parsing the LATERAL keyword in front of each from_item type that supports it.

See https://www.postgresql.org/docs/current/sql-select.html

Fixes oguimbal#122
oguimbal pushed a commit that referenced this issue Jan 8, 2024
Postgres has a LATERAL keyword that modifies one of the `from_item`s in a selection. It doesn't have to be an explicit join statement but is most often used as such. This adds support for parsing the LATERAL keyword in front of each from_item type that supports it.

See https://www.postgresql.org/docs/current/sql-select.html

Fixes #122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant