-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Labels
Description
Input data
Which SQL and options did you provide as input?
From the PostgreSQL 17 UPDATE doc samples:
UPDATE weather SET temp_lo = temp_lo+1, temp_hi = temp_lo+15, prcp = DEFAULT
WHERE city = 'San Francisco' AND date = '2003-07-03'
RETURNING temp_lo, temp_hi, prcp;
Expected Output
UPDATE weather
SET
temp_lo = temp_lo + 1,
temp_hi = temp_lo + 15,
prcp = DEFAULT
WHERE
city = 'San Francisco'
AND date = '2003-07-03'
RETURNING
temp_lo,
temp_hi,
prcp
Actual Output
UPDATE weather
SET
temp_lo = temp_lo + 1,
temp_hi = temp_lo + 15,
prcp = DEFAULT
WHERE
city = 'San Francisco'
AND date = '2003-07-03' RETURNING temp_lo,
temp_hi,
prcp
Usage
- How are you calling / using the library? https://sql-formatter-org.github.io/sql-formatter/
- What SQL language(s) does this apply to? SQL
- Which SQL Formatter version are you using? https://sql-formatter-org.github.io/sql-formatter/
Previous bug here: #678
Thanks.