diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-14 13:53:20 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-14 13:53:20 +0100 |
commit | 58d83399663a080c123d2f112b4f4d84accbc638 (patch) | |
tree | 170dfcb466d14dc29276d809a8cda6a4e7f224bc /synapse/storage/events.py | |
parent | Correctly increment the _next_id initially (diff) | |
download | synapse-58d83399663a080c123d2f112b4f4d84accbc638.tar.xz |
Add support for postgres instead of mysql. Change sql accourdingly. blob + varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS.
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index a2e87c27ce..9fe2effb4b 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -188,12 +188,12 @@ class EventsStore(SQLBaseStore): ) sql = ( - "UPDATE events SET outlier = 0" + "UPDATE events SET outlier = ?" " WHERE event_id = ?" ) txn.execute( sql, - (event.event_id,) + (False, event.event_id,) ) return |