You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ The built-in denylist does not guarantee 100% protection against all SQL injecti
172
172
173
173
## sql-formatter Compatibility
174
174
175
-
The `{{variable}}` syntax is fully compatible with [sql-formatter](https://github.com/sql-formatter-org/sql-formatter). The Trino dialect natively supports `{{double brace}}`parameters, so no custom regex is needed.
175
+
The `{{variable}}` syntax is fully compatible with [sql-formatter](https://github.com/sql-formatter-org/sql-formatter). A `paramTypes` custom regex is required so that `{{variables}}` containing SQL keywords (e.g. `{{limit}}`) are treated as parameters instead of being parsed as SQL.
176
176
177
177
### VS Code
178
178
@@ -187,7 +187,10 @@ Install the [SQL Formatter VSCode](https://marketplace.visualstudio.com/items?it
0 commit comments