[evolution-data-server/openismus-work: 1/122] EBookBackendSqliteDB: Fixed sexp interpretation for 'id' field.



commit 54868468896d9c0935748d22c069977bb71969df
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Mon Oct 29 14:34:55 2012 +0900

    EBookBackendSqliteDB: Fixed sexp interpretation for 'id' field.
    
    In the sqlite backend, the 'id' is stored as the 'uid' column.

 .../libedata-book/e-book-backend-sqlitedb.c        |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index dd6c6fa..17a2174 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -1420,6 +1420,8 @@ convert_match_exp (struct _ESExp *f,
 
 				str = emails->str;
 				g_string_free (emails, FALSE);
+			} else if (!strcmp (field, "id")) {
+				str = g_strdup_printf ("(uid IS NOT NULL AND uid LIKE %s)", value);
 			} else
 				str = g_strdup_printf ("(%s IS NOT NULL AND %s LIKE %s)", field, field, value);
 			g_free (value);



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