Skip to content

Commit 9656c7e

Browse files
Copilotllali
andcommitted
Change JSON Index column from ColumnReferenceExpression to Identifier type
Co-authored-by: llali <17187348+llali@users.noreply.github.com>
1 parent 667ca5c commit 9656c7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SqlScriptDom/Parser/TSql/Ast.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4603,7 +4603,7 @@
46034603
<Class Name="CreateJsonIndexStatement" Base="IndexStatement" Summary="Represents the create JSON index statement.">
46044604
<InheritedMember Name="Name" ContainerClass="IndexStatement" />
46054605
<InheritedMember Name="OnName" ContainerClass="IndexStatement" />
4606-
<Member Name="JsonColumn" Type="ColumnReferenceExpression" Summary="The JSON column for the index."/>
4606+
<Member Name="JsonColumn" Type="Identifier" Summary="The JSON column for the index."/>
46074607
<Member Name="ForJsonPaths" Type="StringLiteral" Collection="true" Summary="The JSON paths specified in the FOR clause. Optional may have zero elements."/>
46084608
<InheritedMember Name="IndexOptions" ContainerClass="IndexStatement" />
46094609
<Member Name="OnFileGroupOrPartitionScheme" Type="FileGroupOrPartitionScheme" Summary="The filegroup or partition scheme. Might be null."/>

SqlScriptDom/Parser/TSql/TSql170.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16988,7 +16988,7 @@ createJsonIndexStatement [IToken tUnique, bool? isClustered] returns [CreateJson
1698816988
{
1698916989
Identifier vIdentifier;
1699016990
SchemaObjectName vSchemaObjectName;
16991-
ColumnReferenceExpression vJsonColumn;
16991+
Identifier vJsonColumn;
1699216992
FileGroupOrPartitionScheme vFileGroupOrPartitionScheme;
1699316993
StringLiteral vPath;
1699416994

@@ -17010,7 +17010,7 @@ createJsonIndexStatement [IToken tUnique, bool? isClustered] returns [CreateJson
1701017010
{
1701117011
vResult.OnName = vSchemaObjectName;
1701217012
}
17013-
LeftParenthesis vJsonColumn=column tRParen:RightParenthesis
17013+
LeftParenthesis vJsonColumn=identifier tRParen:RightParenthesis
1701417014
{
1701517015
vResult.JsonColumn = vJsonColumn;
1701617016
UpdateTokenInfo(vResult, tRParen);

0 commit comments

Comments
 (0)