We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPDATE()
COLUMNS_UPDATED()
TSQL / MS SQL has some poprietary functions that can be used for UPDATE TRIGGERs:
UPDATE TRIGGERs
UPDATE([column_name])
This should be parseable:
CREATE TRIGGER reminder ON Person.Address AFTER UPDATE AS IF ( UPDATE (StateProvinceID) OR UPDATE (PostalCode) ) BEGIN RAISERROR (50009, 16, 10) END; GO
https://learn.microsoft.com/en-us/sql/t-sql/functions/update-trigger-functions-transact-sql?view=azuresqldb-current#examples
Line 6, Position 6: Found unparsable section: 'UPDATE (StateProvinceID) OR UPDATE (Post...'
run SQLFluff Online on statement from "Expected Behavior"
tsql
SQLFluff online: 3.0.7
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Search before asking
What Happened
TSQL / MS SQL has some poprietary functions that can be used for
UPDATE TRIGGERs
:UPDATE([column_name])
COLUMNS_UPDATED()
These are not recognized by SQLFluff
Expected Behaviour
This should be parseable:
https://learn.microsoft.com/en-us/sql/t-sql/functions/update-trigger-functions-transact-sql?view=azuresqldb-current#examples
Observed Behaviour
Line 6, Position 6: Found unparsable section: 'UPDATE (StateProvinceID) OR UPDATE (Post...'
How to reproduce
run SQLFluff Online on statement from "Expected Behavior"
Dialect
tsql
Version
SQLFluff online: 3.0.7
Configuration
SQLFluff online: 3.0.7
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: