Skip to content

[FORMATTING] Can't handle array type #777

@Mooli88

Description

@Mooli88

Input data

Which SQL and options did you provide as input?

CREATE TABLE public.todos (
  assigned_to UUID[] NOT NULL
);

Expected Output
No change or:

assigned_to UUID [] NOT NULL

Actual Output

Error: Unable to format SQL: Error: Parse error: Unexpected "[] NOT NUL" at line 27 column 21

Usage

  • How are you calling / using the library? - Vscode format document / Shift + Option + F
  • What SQL language(s) does this apply to? - Postgres
  • Which SQL Formatter version are you using? - v1.6.0

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