Skip to content

Multiline Constraints Broken by Commas #101

@XedinUnknown

Description

@XedinUnknown
CREATE TABLE `my_table`(
    `one` INT UNSIGNED NOT NULL,
    `two` VARCHAR(255) NOT NULL,
	`three` VARCHAR(100) NULL,
    PRIMARY KEY(
        `one`,
        `two`,
    )
);

becomes

CREATE TABLE `my_table`(
   `one` integer  NOT NULL
,   `two` VARCHAR(255) NOT NULL
,   `three` VARCHAR(100) NULL
,   PRIMARY KEY(
,       `one`
,       `two`
,   )
);

That is wrong:

  1. There shouldn't be a comma after PRIMARY KEY(.
  2. There shouldn't be a comma after two

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions