[Evolution-hackers] [PATCH 4/6] EBookSqlite: Support 'exists' queries from summary



---
 addressbook/libedata-book/e-book-sqlite.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/addressbook/libedata-book/e-book-sqlite.c b/addressbook/libedata-book/e-book-sqlite.c
index 9131c09..13a4843 100644
--- a/addressbook/libedata-book/e-book-sqlite.c
+++ b/addressbook/libedata-book/e-book-sqlite.c
@@ -4233,7 +4233,12 @@ func_check (struct _ESExp *f,
 
        query_type = GPOINTER_TO_UINT (data);
 
-       if (argc == 2 &&
+       if (argc == 1 &&
+           argv[0]->type == ESEXP_RES_STRING) {
+               query_name = argv[0]->value.string;
+
+               field_id = e_contact_field_id (query_name);
+       } else if (argc == 2 &&
            argv[0]->type == ESEXP_RES_STRING &&
            argv[1]->type == ESEXP_RES_STRING) {
                query_name = argv[0]->value.string;
-- 
1.9.3


-- 
David Woodhouse                            Open Source Technology Centre
David Woodhouse intel com                              Intel Corporation

Attachment: smime.p7s
Description: S/MIME cryptographic signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]