mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-19 05:24:18 +01:00
Disable native upserts for sqlite, as they don't work
This commit is contained in:
parent
28c21cd578
commit
1953067136
1 changed files with 7 additions and 3 deletions
|
@ -34,10 +34,14 @@ class Sqlite3Engine(object):
|
||||||
@property
|
@property
|
||||||
def can_native_upsert(self):
|
def can_native_upsert(self):
|
||||||
"""
|
"""
|
||||||
Do we support native UPSERTs? This requires SQLite3 3.24+, plus some
|
Do we support native UPSERTs?
|
||||||
more work we haven't done yet to tell what was inserted vs updated.
|
|
||||||
"""
|
"""
|
||||||
return sqlite_version_info >= (3, 24, 0)
|
# SQLite3 3.24+ supports them, but empirically the unit tests don't work
|
||||||
|
# when its enabled.
|
||||||
|
# FIXME: Figure out what is wrong so we can re-enable native upserts
|
||||||
|
|
||||||
|
# return sqlite_version_info >= (3, 24, 0)
|
||||||
|
return False
|
||||||
|
|
||||||
def check_database(self, txn):
|
def check_database(self, txn):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue