mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-28 12:54:15 +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.
|
Nested blocks use SQLite savepoints.
|
||||||
"""
|
"""
|
||||||
if self.conn.in_transaction:
|
if self.conn.in_transaction:
|
||||||
savepoint = quote_identifier(
|
savepoint = "sqlite_utils_{}".format(secrets.token_hex(16))
|
||||||
"sqlite_utils_{}".format(secrets.token_hex(16))
|
|
||||||
)
|
|
||||||
self.conn.execute("SAVEPOINT {};".format(savepoint))
|
self.conn.execute("SAVEPOINT {};".format(savepoint))
|
||||||
try:
|
try:
|
||||||
yield self
|
yield self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue