Sitelet https://github.com/microsoft/SqlScriptDOM/issues/140
Skip to content

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

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions