[evolution-data-server/openismus-work] EBookBackendSqliteDB: Fixed configurable summary indexes
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work] EBookBackendSqliteDB: Fixed configurable summary indexes
- Date: Tue, 12 Mar 2013 12:37:11 +0000 (UTC)
commit bfe2a09f37a8b8eb3efb8279b475876803c044d9
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Tue Mar 12 21:34:36 2013 +0900
EBookBackendSqliteDB: Fixed configurable summary indexes
A previous commit cause all declared summary fields to also be indexed,
this tiny commit fixes the problem. Only summary fields with explicitly
set indexes should be indexed in the SQLite (i.e. "CREATE INDEX ..." should
only ever be called for a specified subset of summary fields).
.../libedata-book/e-book-backend-sqlitedb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c
b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index d22b615..cad2390 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -1478,7 +1478,7 @@ append_summary_field (GArray *array,
new_field.field = field;
new_field.dbname = dbname;
new_field.type = type;
- new_field.index = INDEX_PREFIX;
+ new_field.index = 0;
g_array_append_val (array, new_field);
return &g_array_index (array, SummaryField, array->len - 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]