diff options
author | demetrzz <60552737+demetrzz@users.noreply.github.com> | 2025-02-16 00:15:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-15 22:15:37 +0100 |
commit | 75752880e24ded1c7f498041b1e1b473baaff955 (patch) | |
tree | 629a585a23cb081c495f13d2094f501cca843a1a /apps/codestyle/codestyle-sql.py | |
parent | c78217baa2317e748ebb4a03209700ed08f35089 (diff) |
fix(Apps/Codestyle) corrected wrong text in the sql codestyle check (#21466)
Co-authored-by: pavel_k <pavel_k@mail.com>
Diffstat (limited to 'apps/codestyle/codestyle-sql.py')
-rw-r--r-- | apps/codestyle/codestyle-sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codestyle/codestyle-sql.py b/apps/codestyle/codestyle-sql.py index 79f13241f3..92666d06c4 100644 --- a/apps/codestyle/codestyle-sql.py +++ b/apps/codestyle/codestyle-sql.py @@ -148,7 +148,7 @@ def insert_delete_safety_check(file: io, file_path: str) -> None: if line.startswith("--"): continue if "INSERT" in line and "DELETE" not in previous_line: - print(f"No DELETE keyword found after the INSERT in {file_path} at line {line_number}\nIf this error is intended, please advert a maintainer") + print(f"No DELETE keyword found before the INSERT in {file_path} at line {line_number}\nIf this error is intended, please advert a maintainer") check_failed = True previous_line = line match = re.match(r"DELETE FROM\s+`([^`]+)`", line, re.IGNORECASE) |