Skip to content

ON CONFLICT is not placed onto it's own line #37

Open

Description

@lucacasonato

Current formatting:

INSERT INTO
  users (name, email)
VALUES
  ($1, $2) ON CONFLICT (email) DO
UPDATE
SET
  name = $1

Proposed:

INSERT INTO
  users (name, email)
VALUES
  ($1, $2)
ON CONFLICT (email) DO UPDATE
SET
  name = $1

Activity

  1. wugeer commented on Sep 3, 2024

    @wugeer
    Contributor

    @lucacasonato Is the following output okay?

    INSERT INTO
        users (name, email)
    VALUES
        ($1, $2)
        ON CONFLICT (email) DO UPDATE
    SET
        name = $1
  2. lucacasonato commented on Sep 26, 2024

    @lucacasonato
    Author

    I think one less indent would be better on that:

    INSERT INTO
        users (name, email)
    VALUES
        ($1, $2)
    ON CONFLICT (email) DO UPDATE
    SET
        name = $1
  3. zachauten commented on Feb 5, 2025

    @zachauten

    Noticed this with DELIMITER as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions