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

Incorrect formatting of join clauses enclosed in parentheses #39

Open
tanzaku opened this issue Nov 9, 2023 · 0 comments
Open

Incorrect formatting of join clauses enclosed in parentheses #39

tanzaku opened this issue Nov 9, 2023 · 0 comments

Comments

@tanzaku
Copy link
Collaborator

tanzaku commented Nov 9, 2023

Original SQL is below.

select * from (pg_enum e join pg_subscription s on e.oid = s.oid);

expected

select
	*
from
	(
		pg_enum	e
	join
		pg_subscription	s
	on
		e.oid	=	s.oid
	)
;

actual(Actually an error is detected and it is not formatted)

select
	*
from
	(pg_enum)	e
join
	pg_subscription	s
on
	e.oid	=	s.oid
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant