You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More consistent formatting for multiple joined tables after the USING keyword in a DELETE FROM ... USING query (consistent compared to SELECT ... FROM ... JOIN:
Input data
Which SQL and options did you provide as input?
DELETEFROM films
USING
producers,
sessions
WHEREsessions.id='123'AND producer_id =producers.idANDproducers.name='foo';
Expected Output
DELETEFROM
films
USING
producers,
sessions
WHEREsessions.id='123'AND producer_id =producers.idANDproducers.name='foo';
Actual Output
DELETEFROM films USING producers,
sessions
WHEREsessions.id='123'AND producer_id =producers.idANDproducers.name='foo';
Why do you want this feature?
To be more consistent with the SELECT ... FROM ... JOIN formatting:
I see this more as a bug report than a feature request.
Unfortunately I have no real ideas for fixing this. It's again one of those bugs that demonstrates the current technical limitations of the formatter.
At least this bug doesn't break the SQL.
nene
changed the title
Feature Request: Improved formatting for PostgreSQL DELETE FROM ... USING
Incorrect indentation in PostgreSQL DELETE FROM ... USINGDec 7, 2023
Describe the Feature
More consistent formatting for multiple joined tables after the
USING
keyword in aDELETE FROM ... USING
query (consistent compared toSELECT ... FROM ... JOIN
:Input data
Which SQL and options did you provide as input?
Expected Output
Actual Output
Why do you want this feature?
To be more consistent with the
SELECT ... FROM ... JOIN
formatting:The text was updated successfully, but these errors were encountered: