Skip to content

BUG: Formatter silently removes invalid leading tokens #45

Description

@wyhaya

libpgfmt returns Ok while silently removing an invalid leading token from the SQL. A formatter should return an error instead of changing or dropping unrecognized input.

Reproduction

Input:

1 SELECT random();

Output:

SELECT random();

Expected result: Return an Error or retain the original tokens.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions