8000 INSERT INTO formatting issue with nested SELECT's · Issue #31 · benlaan/sqlformat · GitHub
[go: up one dir, main page]

Skip to content

INSERT INTO formatting issue with nested SELECT's #31

@meekys

Description

@meekys

Source
insert into dbo.ATable
(Col1, Col2)
VALUES (
(SELECT Id FROM Table2),
(SELECT Id FROM Table3)
)

Output
INSERT INTO dbo.ATable (Col1, Col2)
VALUES ((Laan.Sql.Parser.Entities.SelectStatement), (Laan.Sql.Parser.Entities.SelectStatement))

Expected Output
INSERT INTO dbo.ATable (Col1, Col2)
VALUES (
(SELECT Id
FROM Table2),
(SELECT Id
FROM Table3))

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

      0