darold / pgFormatter

A PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI. On-line demo site at http://sqlformat.darold.net/
PostgreSQL License
1.66k stars 100 forks source link

TRUNCATE: table list is put on a single line #298

Closed GabenGar closed 1 year ago

GabenGar commented 1 year ago

Multiple tables listed in TRUNCATE do not get multi-lined. Expected output:

TRUNCATE
  table001,
  table002,
  table003,
  table004,
  table005,
  table006,
  table007,
  table008,
  table009,
  table010
RESTART IDENTITY
CASCADE
;

Actual output:

TRUNCATE table001, table002, table003, table004, table005, table006, table007, table008, table009, table010 RESTART IDENTITY CASCADE;
darold commented 1 year ago

Commit da374879 adds this formatting when a table list is present.