EBookBackendSqliteDB: Fixed configurable summary indexes
authorTristan Van Berkom <tristanvb@openismus.com>
Tue, 12 Mar 2013 12:34:36 +0000 (21:34 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Tue, 12 Mar 2013 12:34:36 +0000 (21:34 +0900)
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).

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

index e8e5246..beee784 100644 (file)
@@ -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);