mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33:09 -06:00
Tweaks from @babolivier review comments
This commit is contained in:
parent
c67aa04f24
commit
96a0e09113
|
|
@ -84,10 +84,12 @@ const selectStateEventSQL = "" +
|
||||||
"SELECT event_json FROM syncapi_current_room_state WHERE room_id = $1 AND type = $2 AND state_key = $3"
|
"SELECT event_json FROM syncapi_current_room_state WHERE room_id = $1 AND type = $2 AND state_key = $3"
|
||||||
|
|
||||||
const selectEventsWithEventIDsSQL = "" +
|
const selectEventsWithEventIDsSQL = "" +
|
||||||
// TODO: The session_id and transaction_id blanks are here because otherwise the rowsToStreamEvents
|
// TODO: The session_id and transaction_id blanks are here because otherwise
|
||||||
// expects there to be exactly four columns. We need a better solution to this long term.
|
// the rowsToStreamEvents expects there to be exactly four columns. We need to
|
||||||
// - neilalexander, 2 Jan 2020
|
// figure out if these really need to be in the DB, and if so, we need a
|
||||||
"SELECT added_at, event_json, 0 AS session_id, '' AS transaction_id FROM syncapi_current_room_state WHERE event_id = ANY($1)"
|
// better permanent fix for this. - neilalexander, 2 Jan 2020
|
||||||
|
"SELECT added_at, event_json, 0 AS session_id, '' AS transaction_id" +
|
||||||
|
" FROM syncapi_current_room_state WHERE event_id = ANY($1)"
|
||||||
|
|
||||||
type currentRoomStateStatements struct {
|
type currentRoomStateStatements struct {
|
||||||
upsertRoomStateStmt *sql.Stmt
|
upsertRoomStateStmt *sql.Stmt
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue