Skip to content

[FORMATTING] Comments after LIMIT keyword #301

@skubot

Description

@skubot

Input data
Which SQL and options did you provide as input?
options = { language: 'postgresql' };

Expected Output

LIMIT
  --limit special in this case as there is sensitivity on max
  LEAST(100, COALESCE('__limit', 20));

Actual Output

LIMIT
  --limit special in these case as there is sensitivity on max LEAST(100, COALESCE('__limit', 20));

Usage

  • How are you calling / using the library?
    calling inside a Jest snapshot-serializer
  • What SQL language(s) does this apply to?
    postgresql
  • Which SQL Formatter version are you using?
    The issue appeared after upgrading to v8.0.2 (from v7.0.4)

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