Skip to content

Commit 50a1bff

Browse files
Copilotllali
andcommitted
Fix parser error test offsets - correct positions for JSON keyword errors
Co-authored-by: llali <17187348+llali@users.noreply.github.com>
1 parent 89c0efc commit 50a1bff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Test/SqlDom/ParserErrorsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4420,11 +4420,11 @@ public void CreateJsonIndexStatementErrorTest()
44204420
// Test that UNIQUE and CLUSTERED/NONCLUSTERED are not allowed with JSON indexes in TSql170
44214421
TSql170Parser parser170 = new TSql170Parser(true);
44224422
ParserTestUtils.ErrorTest(parser170, "CREATE UNIQUE JSON INDEX idx1 ON table1 (jsonColumn)",
4423-
new ParserErrorInfo(19, "SQL46010", "INDEX"));
4423+
new ParserErrorInfo(14, "SQL46010", "JSON"));
44244424
ParserTestUtils.ErrorTest(parser170, "CREATE CLUSTERED JSON INDEX idx1 ON table1 (jsonColumn)",
4425-
new ParserErrorInfo(22, "SQL46010", "INDEX"));
4425+
new ParserErrorInfo(17, "SQL46010", "JSON"));
44264426
ParserTestUtils.ErrorTest(parser170, "CREATE NONCLUSTERED JSON INDEX idx1 ON table1 (jsonColumn)",
4427-
new ParserErrorInfo(26, "SQL46010", "INDEX"));
4427+
new ParserErrorInfo(20, "SQL46010", "JSON"));
44284428

44294429
// Test malformed JSON Index syntax in TSql170
44304430
// Missing column specification

0 commit comments

Comments
 (0)