[evolution-data-server] EBookBackendSqliteDB: Fixed configurable summary indexes



commit a0431fe6de690fb393800fac65126811b2c251ca
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 e8e5246..beee784 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -1417,7 +1417,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]