mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Fix error in "rowsToStreamEvent"
Add columns device_id, transaction_id to select statement. This matches the subsequent call to Scan() and thus prevents the error. Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
This commit is contained in:
parent
6147c72663
commit
731eee377d
|
|
@ -67,10 +67,12 @@ const insertEventSQL = "" +
|
|||
") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING id"
|
||||
|
||||
const selectEventsSQL = "" +
|
||||
"SELECT id, event_json FROM syncapi_output_room_events WHERE event_id = ANY($1)"
|
||||
"SELECT id, event_json, device_id, transaction_id" +
|
||||
" FROM syncapi_output_room_events WHERE event_id = ANY($1)"
|
||||
|
||||
const selectRecentEventsSQL = "" +
|
||||
"SELECT id, event_json, device_id, transaction_id FROM syncapi_output_room_events" +
|
||||
"SELECT id, event_json, device_id, transaction_id" +
|
||||
" FROM syncapi_output_room_events" +
|
||||
" WHERE room_id = $1 AND id > $2 AND id <= $3" +
|
||||
" ORDER BY id DESC LIMIT $4"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue