[evolution-data-server/openismus-work] sqlitedb: Update attr_list_indexes during introspection
- From: Mathias Hasselmann <hasselmm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work] sqlitedb: Update attr_list_indexes during introspection
- Date: Tue, 5 Mar 2013 23:06:33 +0000 (UTC)
commit 5ca50f0360cdd1a512048b47f0a4405df8af0472
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 e0d6b1d..d22b615 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -828,6 +828,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);
@@ -850,6 +852,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]