[evolution-data-server/openismus-work-master: 1100/1102]	EBookBackendSqliteDB: Fixed sexp interpretation for 'id' field.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [evolution-data-server/openismus-work-master: 1100/1102]	EBookBackendSqliteDB: Fixed sexp interpretation for 'id' field.
- Date: Mon, 29 Oct 2012 06:43:21 +0000 (UTC)
commit b396be44a94f470d3fc7828a8f786ef9a757605e
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 f8e7205..98eda25 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -1385,6 +1385,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]