SqlScriptDOM icon indicating copy to clipboard operation
SqlScriptDOM copied to clipboard

Column name is parsed as broken MultipartIdentifier if inline PK defined

Open IVNSTN opened this issue 7 months ago • 0 comments

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.

IVNSTN avatar Jun 24 '25 09:06 IVNSTN