mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Fix Postgres, hopefully
This commit is contained in:
parent
45bcca2cb6
commit
d369acf512
1 changed files with 2 additions and 4 deletions
|
@ -92,10 +92,8 @@ const bulkSelectStateEventByIDSQL = "" +
|
|||
const bulkSelectStateEventByNIDSQL = "" +
|
||||
"SELECT event_type_nid, event_state_key_nid, event_nid FROM roomserver_events" +
|
||||
" WHERE event_nid = ANY($1)" +
|
||||
//" AND event_type_nid = ANY($2)" +
|
||||
//" AND event_state_key_nid = ANY($3)" +
|
||||
" AND ($2::bigint[] IS NULL OR event_type_nid = ANY($2))" +
|
||||
" AND ($3::bigint[] IS NULL OR event_state_key_nid = ANY($3))" +
|
||||
" AND (CARDINALITY($2) = 0 OR event_type_nid = ANY($2))" +
|
||||
" AND (CARDINALITY($3) = 0 OR event_state_key_nid = ANY($3))" +
|
||||
" ORDER BY event_type_nid, event_state_key_nid ASC"
|
||||
|
||||
const bulkSelectStateAtEventByIDSQL = "" +
|
||||
|
|
Loading…
Reference in a new issue