Skip to content

[FORMATTING] Identifier 'groups' is treated as a keyword for language dialect sqlite #823

Closed
@linusjf

Description

@linusjf

Input data

Which SQL and options did you provide as input?

DROP TABLE IF EXISTS groups;
CREATE TABLE groups (group_id INTEGER PRIMARY KEY, name TEXT NOT NULL);

CREATE TABLE contacts_groups (
contact_id INTEGER,
group_id INTEGER,
PRIMARY KEY (contact_id, group_id),
FOREIGN KEY (contact_id) REFERENCES contacts (contact_id) ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (group_id) REFERENCES groups (group_id) ON DELETE CASCADE ON UPDATE NO ACTION
);

Expected Output

No change

Actual Output

The identifier groups is capitalised.

Usage

  • How are you calling / using the library?
  • CLI
  • What SQL language(s) does this apply to?
  • sqlite
  • Which SQL Formatter version are you using?
  • 15.4.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions