remove : check from dbproxy

This commit is contained in:
Damien Elmes 2020-03-24 10:37:12 +10:00
parent b1a8107aa1
commit 5c5d1c2af5

View file

@ -48,7 +48,6 @@ class DBProxy:
for stmt in "insert", "update", "delete": for stmt in "insert", "update", "delete":
if s.startswith(stmt): if s.startswith(stmt):
self.mod = True self.mod = True
assert ":" not in sql
# fetch rows # fetch rows
return self._backend.db_query(sql, args, first_row_only) return self._backend.db_query(sql, args, first_row_only)
@ -84,7 +83,6 @@ class DBProxy:
def executemany(self, sql: str, args: Iterable[Sequence[ValueForDB]]) -> None: def executemany(self, sql: str, args: Iterable[Sequence[ValueForDB]]) -> None:
self.mod = True self.mod = True
assert ":" not in sql
if isinstance(args, list): if isinstance(args, list):
list_args = args list_args = args
else: else: