Skip to content

Commit

Permalink
Fix TSQL DECLARE and SET statements to fully parse expression assignm…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
jpersons committed Oct 14, 2021
1 parent 41fad10 commit 44f3c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/sqlfluff/dialects/dialect_tsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
Delimited,
Matchable,
NamedParser,
StartsWith,
OptionallyBracketed,
Dedent,
BaseFileSegment,
Expand Down
5 changes: 3 additions & 2 deletions test/fixtures/dialects/tsql/print.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# computed by SQLFluff when running the tests. Please run
# `python test/generate_parse_fixture_yml.py` to generate them after adding or
# altering SQL files.
_hash: ae5fdbfdc047812dbf5359045d2a417e4e7c09cbe83683737b5e96d1900da119
_hash: ccc3078339f97b77c695b4327a6d0b12d1d6007c5abfaa5460ca49f812164c4e
file:
batch:
- statement:
Expand All @@ -18,7 +18,8 @@ file:
literal: '20'
end_bracket: )
comparison_operator: '='
literal: "'Test Print'"
expression:
literal: "'Test Print'"
- statement:
print_statement:
keyword: PRINT
Expand Down

0 comments on commit 44f3c6c

Please sign in to comment.