We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0555ce commit bbfbfa6Copy full SHA for bbfbfa6
zigpy_cli/database.py
@@ -25,11 +25,11 @@ def sqlite3_split_statements(sql: str) -> list[str]:
25
statements = []
26
statement = ""
27
28
- for chunk in sql.strip().split(";"):
29
- if not chunk:
30
- continue
+ chunks = sql.strip().split(";")
+ chunks_with_delimiter = [s + ";" for s in chunks[:-1]] + [chunks[-1]]
31
32
- statement += chunk + ";"
+ for chunk in chunks_with_delimiter:
+ statement += chunk
33
34
if sqlite3.complete_statement(statement):
35
statements.append(statement.strip())
0 commit comments