Skip to content

[VSCODE] SQLFlavourOverride: db2 .... Gets error on "#" character, even though db2 allows for it #550

Description

@moymike

I'm working with DB2 (iSeries) SQL statements. One of the primary databases I work with includes "#" within the library name.

Example:
select * from db#prod.pohead where ponum = 1111;

Format Document error
Unable to format SQL: Error: Parse error: Unexpected "#prod.pohead" at line 99 column 99

If I use the IBM Client Access SQL tool, the format works fine. It appears that the the "Prettier-SQL.SQLFlavourOverride": "db2" is not allowing character "#" in the library name even though it is valid.

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

    vscodeRelated to the VSCode Extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions