mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
fix(MainDb): fetch correctly addresses, not ids
This commit is contained in:
parent
fea02c354c
commit
303e9805e2
1 changed files with 9 additions and 5 deletions
|
|
@ -290,10 +290,11 @@ MainDb::MainDb () : AbstractDb(*new MainDbPrivate) {}
|
|||
string participantAddress;
|
||||
|
||||
soci::session *session = dbSession.getBackendSession<soci::session>();
|
||||
*session << "SELECT notify_id, participant_address_id"
|
||||
" FROM conference_notified_event, conference_participant_event"
|
||||
*session << "SELECT notify_id, participant_address.value"
|
||||
" FROM conference_notified_event, conference_participant_event, sip_address as participant_address"
|
||||
" WHERE conference_participant_event.event_id = :eventId"
|
||||
" AND conference_notified_event.event_id = conference_participant_event.event_id",
|
||||
" AND participant_address.id = participant_address_id"
|
||||
soci::into(notifyId), soci::into(participantAddress), soci::use(eventId);
|
||||
|
||||
// TODO: Use cache.
|
||||
|
|
@ -317,11 +318,14 @@ MainDb::MainDb () : AbstractDb(*new MainDbPrivate) {}
|
|||
string gruuAddress;
|
||||
|
||||
soci::session *session = dbSession.getBackendSession<soci::session>();
|
||||
*session << "SELECT notify_id, participant_address_id, gruu_address_id"
|
||||
" FROM conference_notified_event, conference_participant_event, conference_participant_device_event"
|
||||
*session << "SELECT notify_id, participant_address.value, gruu_address.value"
|
||||
" FROM conference_notified_event, conference_participant_event, conference_participant_device_event,"
|
||||
" sip_address AS participant_address, sip_address AS gruu_address"
|
||||
" WHERE conference_participant_device_event.event_id = :eventId"
|
||||
" AND conference_participant_event.event_id = conference_participant_device_event.event_id"
|
||||
" AND conference_notified_event.event_id = conference_participant_event.event_id",
|
||||
" AND conference_notified_event.event_id = conference_participant_event.event_id"
|
||||
" AND participant_address.id = participant_address_id"
|
||||
" AND gruu_address.id = gruu_address_id",
|
||||
soci::into(notifyId), soci::into(participantAddress), soci::into(gruuAddress), soci::use(eventId);
|
||||
|
||||
// TODO: Use cache.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue