From 9fee01e5bf61bbd93be9e4945848c3b5f7679078 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 19 Apr 2017 15:53:02 +0100 Subject: [PATCH] More style --- .../dendrite/syncserver/storage/output_room_events_table.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/syncserver/storage/output_room_events_table.go b/src/github.com/matrix-org/dendrite/syncserver/storage/output_room_events_table.go index b71b13cf6..9f2e3b4a9 100644 --- a/src/github.com/matrix-org/dendrite/syncserver/storage/output_room_events_table.go +++ b/src/github.com/matrix-org/dendrite/syncserver/storage/output_room_events_table.go @@ -49,8 +49,9 @@ const selectMaxIDSQL = "" + // In order for us to apply the state updates correctly, rows need to be ordered in the order they were received (id). const selectStateInRangeSQL = "" + - "SELECT event_json, add_state_ids, remove_state_ids FROM output_room_events WHERE id > $1 AND id < $2 AND" + - " add_state_ids IS NOT NULL OR remove_state_ids IS NOT NULL ORDER BY id ASC" + "SELECT event_json, add_state_ids, remove_state_ids FROM output_room_events" + + " WHERE id > $1 AND id < $2 AND add_state_ids IS NOT NULL OR remove_state_ids IS NOT NULL" + + " ORDER BY id ASC" type outputRoomEventsStatements struct { insertEventStmt *sql.Stmt