[evolution-data-server] sqlitedb: Update attr_list_indexes during introspection
- From: Mathias Hasselmann <hasselmm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] sqlitedb: Update attr_list_indexes during introspection
- Date: Wed, 6 Mar 2013 11:11:14 +0000 (UTC)
commit 07a1ff33bbeed29dee93bc036fbfe284acdff18b
Author: Mathias Hasselmann <mathias openismus com>
Date: Wed Mar 6 00:03:09 2013 +0100
sqlitedb: Update attr_list_indexes during introspection
This is needed to properly reopen addressbooks without
specifying the full custom summary a second time.
.../libedata-book/e-book-backend-sqlitedb.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c
b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index 7428e98..33f4a46 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -785,6 +785,8 @@ introspect_summary (EBookBackendSqliteDB *ebsdb,
if (!success)
goto introspect_summary_finish;
+ ebsdb->priv->attr_list_indexes = 0;
+
if (multivalues) {
gchar **fields = g_strsplit (multivalues, ":", 0);
@@ -807,6 +809,8 @@ introspect_summary (EBookBackendSqliteDB *ebsdb,
iter->index |= INDEX_PHONE;
}
}
+
+ ebsdb->priv->attr_list_indexes |= iter->index;
}
g_strfreev (params);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]