[evolution-data-server] Bug 735523 - EBookSqlite: Support 'exists' queries from summary



commit b8c18cfd56cb08290d51a7a40d37849e641fc86f
Author: David Woodhouse <David Woodhouse intel com>
Date:   Tue Aug 26 14:10:22 2014 +0100

    Bug 735523 - EBookSqlite: Support 'exists' queries from summary

 addressbook/libedata-book/e-book-sqlite.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-sqlite.c b/addressbook/libedata-book/e-book-sqlite.c
index c5da9ce..6017e9e 100644
--- a/addressbook/libedata-book/e-book-sqlite.c
+++ b/addressbook/libedata-book/e-book-sqlite.c
@@ -4248,7 +4248,12 @@ func_check (struct _ESExp *f,
 
        query_type = GPOINTER_TO_UINT (data);
 
-       if (argc == 2 &&
+       if (argc == 1 && query_type == BOOK_QUERY_EXISTS &&
+           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;


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