TransactSQL table WITH (NOLOCK)
is formatted as WITH-clause.
#867
Labels
table WITH (NOLOCK)
is formatted as WITH-clause.
#867
Uh oh!
There was an error while loading. Please reload this page.
Which SQL and options did you provide as input?
I am using the SQL Formatter VSCode extention with default settings except for the three following:
"SQL-Formatter-VSCode.dialect": "transactsql",
"SQL-Formatter-VSCode.functionCase": "upper",
"SQL-Formatter-VSCode.keywordCase": "upper",
The TransactSQL dialect does not seem to handle WITH (NOLOCK) appropriately. I think it considers it as a WITH statement, and it does not uppercase nolock automatically. For example:
Input data
Expected Output
Actual Output
Usage
I am using the SQL Formatter VSCode extention.
TransactSQL
The extension is v4.2.0
The text was updated successfully, but these errors were encountered: