fix(Apps/Codestyle) corrected wrong text in the sql codestyle check (#21466)
Co-authored-by: pavel_k <pavel_k@mail.com>
This commit is contained in:
parent
c78217baa2
commit
75752880e2
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ def insert_delete_safety_check(file: io, file_path: str) -> None:
|
||||||
if line.startswith("--"):
|
if line.startswith("--"):
|
||||||
continue
|
continue
|
||||||
if "INSERT" in line and "DELETE" not in previous_line:
|
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
|
check_failed = True
|
||||||
previous_line = line
|
previous_line = line
|
||||||
match = re.match(r"DELETE FROM\s+`([^`]+)`", line, re.IGNORECASE)
|
match = re.match(r"DELETE FROM\s+`([^`]+)`", line, re.IGNORECASE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue