diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-01 10:16:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 10:16:57 +0100 |
commit | 479fbac96f5accb752e39046684b904b816cfb44 (patch) | |
tree | ac54235b37a334f751055e3bb88f8204272e89aa /synapse/storage/engines/sqlite.py | |
parent | Merge pull request #6117 from matrix-org/erikj/fix_sample_config (diff) | |
parent | Newsfile (diff) | |
download | synapse-479fbac96f5accb752e39046684b904b816cfb44.tar.xz |
Merge pull request #6135 from matrix-org/erikj/fixup_devices_last_seen_query
Fix `devices_last_seen` background update.
Diffstat (limited to 'synapse/storage/engines/sqlite.py')
-rw-r--r-- | synapse/storage/engines/sqlite.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/storage/engines/sqlite.py b/synapse/storage/engines/sqlite.py index e9b9caa49a..ac92109366 100644 --- a/synapse/storage/engines/sqlite.py +++ b/synapse/storage/engines/sqlite.py @@ -38,6 +38,14 @@ class Sqlite3Engine(object): """ return self.module.sqlite_version_info >= (3, 24, 0) + @property + def supports_tuple_comparison(self): + """ + Do we support comparing tuples, i.e. `(a, b) > (c, d)`? This requires + SQLite 3.15+. + """ + return self.module.sqlite_version_info >= (3, 15, 0) + def check_database(self, txn): pass |