mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
Query update
This commit is contained in:
parent
b9262eab70
commit
44c53e32f8
|
|
@ -92,7 +92,7 @@ const updateEventJSONSQL = "" +
|
|||
*/
|
||||
|
||||
const selectCountStateChangesInRangeSQL = "" +
|
||||
"SELECT COUNT(*), MIN(id), MAX(id) FROM syncapi_output_room_events" +
|
||||
"SELECT COUNT(*), coalesce(MIN(id), 0) AS min, coalesce(MAX(id), 0) AS max FROM syncapi_output_room_events" +
|
||||
" WHERE (id > $1 AND id <= $2) AND ((add_state_ids IS NULL OR add_state_ids = '') OR (remove_state_ids IS NULL OR remove_state_ids = ''))"
|
||||
|
||||
const selectStateInRangeSQL = "" +
|
||||
|
|
|
|||
Loading…
Reference in a new issue