Skip to content

ON DELETE SET NULL causes incorrect line breaks and cascading indentation errors #132

Description

@Huliiiiii

Input:

CREATE TABLE t (
  c1 INT REFERENCES r (id) ON DELETE SET NULL,
  c2 TEXT
);

Output:

CREATE TABLE t (
  c1 INT REFERENCES r (id) ON DELETE
  SET
    NULL,
    c2 TEXT
);

Config:

"dialect": "postgresql",
"linesBetweenQueries": 2,
"uppercase": true,
"maxInlineTopLevel": 80

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkilo-auto-fixAuto-generated label by Kilokilo-triagedAuto-generated label by Kilo

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions