Skip to content

Commit a88478c

Browse files
TSQL: Move PROPERTY to unreserved (#5759)
Co-authored-by: Alan Cruickshank <[email protected]>
1 parent 217c706 commit a88478c

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/sqlfluff/dialects/dialect_tsql_keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
"PRINT",
170170
"PROC",
171171
"PROCEDURE",
172-
"PROPERTY",
173172
"PUBLIC",
174173
"RAISERROR",
175174
"READ",
@@ -493,6 +492,7 @@
493492
"PRECISION", # listed as reserved but functionally unreserved
494493
"PRIOR",
495494
"PROFILE",
495+
"PROPERTY",
496496
"PUSHDOWN",
497497
"QUERY_GOVERNOR_COST_LIMIT",
498498
"QUERYTRACEON",

test/fixtures/dialects/tsql/select.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ SELECT
5757
NUMERIC_ROUNDABORT ,
5858
PARSEONLY ,
5959
PRECISION ,
60+
PROPERTY ,
6061
QUERY_GOVERNOR_COST_LIMIT ,
6162
QUOTED_IDENTIFIER ,
6263
REMOTE_PROC_TRANSACTIONS ,

test/fixtures/dialects/tsql/select.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# computed by SQLFluff when running the tests. Please run
44
# `python test/generate_parse_fixture_yml.py` to generate them after adding or
55
# altering SQL files.
6-
_hash: 59a35b46fcaf8ea8fc2fb65f68781819778331f671e63b3a8e12bb24096596dd
6+
_hash: cd5c1e1638d1d92a2646681f46b513cce2da8c732fbc2d9649f3ac74cd3d7064
77
file:
88
batch:
99
- statement:
@@ -337,6 +337,10 @@ file:
337337
column_reference:
338338
naked_identifier: PRECISION
339339
- comma: ','
340+
- select_clause_element:
341+
column_reference:
342+
naked_identifier: PROPERTY
343+
- comma: ','
340344
- select_clause_element:
341345
column_reference:
342346
naked_identifier: QUERY_GOVERNOR_COST_LIMIT

0 commit comments

Comments
 (0)