mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 00:11:21 -06: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user