2011-05-24 08:02:52

by Slawomir Bochenski

[permalink] [raw]
Subject: [PATCH] Fix fetching call history in parts

This fixes doing a phone book pull on call history phone book, from
specified offset and/or with specified limit.
---
plugins/phonebook-tracker.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index a20870e..1022d3a 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -250,8 +250,7 @@ CALLS_CONSTRAINTS(CONSTRAINT) \
"nmo:receivedDate(?_call) " \
"nmo:isSent(?_call) " \
"nmo:isAnswered(?_call) " \
- "fn:concat(tracker:coalesce(?_ncontact, \"\")," \
- "tracker:coalesce(?_unb_contact, \"\"))" \
+ "?_call " \
CALLS_CONSTRAINTS(CONSTRAINT) \
"ORDER BY DESC(nmo:sentDate(?_call)) "

--
1.7.4.1



2011-05-25 20:34:53

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix fetching call history in parts

Hi Slawek,

On Tue, May 24, 2011, Slawomir Bochenski wrote:
> This fixes doing a phone book pull on call history phone book, from
> specified offset and/or with specified limit.
> ---
> plugins/phonebook-tracker.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)

Applied. Thanks.

Johan