mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 01:44:31 +02:00
No need to quote_identifier here
This commit is contained in:
parent
11215b170d
commit
83311dc738
1 changed files with 1 additions and 3 deletions
|
|
@ -414,9 +414,7 @@ class Database:
|
|||
Nested blocks use SQLite savepoints.
|
||||
"""
|
||||
if self.conn.in_transaction:
|
||||
savepoint = quote_identifier(
|
||||
"sqlite_utils_{}".format(secrets.token_hex(16))
|
||||
)
|
||||
savepoint = "sqlite_utils_{}".format(secrets.token_hex(16))
|
||||
self.conn.execute("SAVEPOINT {};".format(savepoint))
|
||||
try:
|
||||
yield self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue