EBookBackendSqliteDB: Fixed sexp interpretation for 'id' field.
authorTristan Van Berkom <tristanvb@openismus.com>
Mon, 29 Oct 2012 05:34:55 +0000 (14:34 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Thu, 8 Nov 2012 05:36:22 +0000 (14:36 +0900)
In the sqlite backend, the 'id' is stored as the 'uid' column.

addressbook/libedata-book/e-book-backend-sqlitedb.c

index ddae3b4..89a7261 100644 (file)
@@ -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);