More style

This commit is contained in:
Kegan Dougal 2017-04-19 15:53:02 +01:00
parent 0643b905a4
commit 9fee01e5bf

View file

@ -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). // In order for us to apply the state updates correctly, rows need to be ordered in the order they were received (id).
const selectStateInRangeSQL = "" + const selectStateInRangeSQL = "" +
"SELECT event_json, add_state_ids, remove_state_ids FROM output_room_events WHERE id > $1 AND id < $2 AND" + "SELECT event_json, add_state_ids, remove_state_ids FROM output_room_events" +
" add_state_ids IS NOT NULL OR remove_state_ids IS NOT NULL ORDER BY id ASC" " 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 { type outputRoomEventsStatements struct {
insertEventStmt *sql.Stmt insertEventStmt *sql.Stmt