-
Notifications
You must be signed in to change notification settings - Fork 420
Using $action in tsql merge causes crash #810
New issue
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
Comments
So, if I understand it correctly, it's this special word |
A quick workaround is to use the paramTypes option:
|
Yes, it is not case sensitive. It works equally well with |
So I implemented a fix for this, by just including At least it doesn't cause a crash any more :) |
Released the fix in 15.4.8 |
Oh my god. You are awesome. Thank you for this! |
Describe the bug
When using
$action
in aMERGE
intsql
, see https://learn.microsoft.com/en-us/sql/t-sql/queries/output-clause-transact-sql?view=sql-server-ver16#action, then the formatter craches.For example, consider this:
Expected behavior
That the script is being formatted
Actual behavior
This currently emits the error
Error: Parse error: Unexpected "$action AS" at line 25 column 5.
:Usage
prettier-plugin-sql
tsql
15.0.2
The text was updated successfully, but these errors were encountered: