Skip to content

postgresql: better handle DISTINCT clause #144

Open
@holymonson

Description

@holymonson

At present sql-formatter produces:

SELECT
  DISTINCT ON (c1, c2) c1,
  c2
FROM
  t1;

But we expect:

SELECT
DISTINCT ON (c1, c2)
  c1,
  c2
FROM
  t1;

-- or 

SELECT DISTINCT ON (c1, c2)
  c1,
  c2
FROM
  t1;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions