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

Newline in CREATE OR REPLACE ... #60

Open
pnezis opened this issue Nov 7, 2024 · 1 comment
Open

Newline in CREATE OR REPLACE ... #60

pnezis opened this issue Nov 7, 2024 · 1 comment

Comments

@pnezis
Copy link

pnezis commented Nov 7, 2024

For the following input:

CREATE OR REPLACE FUNCTION foo() RETURNS TEXT

the following formatted query is returned:

CREATE
OR REPLACE FUNCTION foo() RETURNS TEXT

The same applies for all CREATE OR REPLACE operations, e.g. procedures, aggregates, etc.

All sql formatters i know of do not add the new line, the formatted query should be:

CREATE OR REPLACE FUNCTION foo () RETURNS TEXT
@bartlomieju
Copy link

I believe this is closely related to #37

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

2 participants