mirror of
https://github.com/beetbox/beets.git
synced 2026-01-20 15:14:13 +01:00
db: disable DQS on Python >= 3.12 (#5235)
cf. https://github.com/beetbox/beets/issues/4709, let's see how badly this breaks CI
This commit is contained in:
commit
bd319c2c43
1 changed files with 10 additions and 0 deletions
|
|
@ -1124,6 +1124,16 @@ class Database:
|
|||
# call conn.close() in _close()
|
||||
check_same_thread=False,
|
||||
)
|
||||
|
||||
if sys.version_info >= (3, 12) and sqlite3.sqlite_version_info >= (
|
||||
3,
|
||||
29,
|
||||
0,
|
||||
):
|
||||
# If possible, disable double-quoted strings
|
||||
conn.setconfig(sqlite3.SQLITE_DBCONFIG_DQS_DDL, 0)
|
||||
conn.setconfig(sqlite3.SQLITE_DBCONFIG_DQS_DML, 0)
|
||||
|
||||
self.add_functions(conn)
|
||||
|
||||
if self.supports_extensions:
|
||||
|
|
|
|||
Loading…
Reference in a new issue