diff --git a/apps/codestyle/codestyle-sql.py b/apps/codestyle/codestyle-sql.py index 92666d06c..2bc0d3a91 100644 --- a/apps/codestyle/codestyle-sql.py +++ b/apps/codestyle/codestyle-sql.py @@ -234,7 +234,7 @@ def backtick_check(file: io, file_path: str) -> None: # Skip SQL keywords if word.upper() in {"SELECT", "FROM", "JOIN", "WHERE", "GROUP", "BY", "ORDER", "DELETE", "UPDATE", "INSERT", "INTO", "SET", "VALUES", "AND", - "IN", "OR", "REPLACE"}: + "IN", "OR", "REPLACE", "NOT"}: continue # Make sure the word is enclosed in backticks