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

Rethink SQL_ID placement for 'WITH RECURSIVE' clauses in uroborosql-fmt #72

Open
tanzaku opened this issue Jul 3, 2024 · 0 comments
Open

Comments

@tanzaku
Copy link
Collaborator

tanzaku commented Jul 3, 2024

Currently, uroborosql-fmt places SQL_ID after the 'recursive' keyword.

with recursive /* _SQL_ID_ */
	t	(
		n
	)	as	(
		select
			n	+	1
		from
			t
		where
			n	<	100
	)
select
	sum(n)
from
	t
;

However, should we place SQL_ID after the 'WITH' keyword instead?

with /* _SQL_ID_ */
	recursive
	t	(
		n
	)	as	(
		select
			n	+	1
		from
			t
		where
			n	<	100
	)
select
	sum(n)
from
	t
;
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