Skip to content

[FORMATTING] Will not format #Temp Tables #745

@bharris6avera

Description

@bharris6avera

Input data

Which SQL and options did you provide as input?

Select *
From #temp as A
left join table as B 
    on A.ID = B.ID

Expected Output

Select
    *
From
    #temp as A
    left join table as B on A.ID = B.ID

Actual Output

Unable to format SQL: Error: Parse error: Unexpected "#temp as A" at line 4 column 5

Usage

  • How are you calling / using the library?
    Right click in the white space of the document and select "Format Document"
  • What SQL language(s) does this apply to?
    T-SQL
  • Which SQL Formatter version are you using?
    ["INFO" - 8:42:51 AM] Extension Name: esbenp.prettier-vscode.
    ["INFO" - 8:42:51 AM] Extension Version: 10.4.0.

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