Skip to content

Column name is parsed as broken MultipartIdentifier if inline PK defined #140

@IVNSTN

Description

@IVNSTN

ScriptDom version: 170.28.0

If column is marked as PRIMARY KEY inline then it begins to be parsed as MultipartIdentifier with a single identifier and all the other properties missing (-1 for indexes, null for ScriptTokenStream)

Minimal repro:

DECLARE @Results TABLE (IdObject INT NOT NULL PRIMARY KEY);

Image

if I remove PRIMARY KEY the column name is not parsed as MultipartIdentifier anymore and the error goes away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions