EBookBackendSqliteDB: Avoid summary introspection on initial creation.
authorTristan Van Berkom <tristanvb@openismus.com>
Tue, 16 Apr 2013 08:18:53 +0000 (17:18 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Tue, 16 Apr 2013 08:28:57 +0000 (17:28 +0900)
commit8231aea4b0685a409e7c2952c42b1218426a9060
tree72f346bef0961068e2dc3ffa8f844dee555e2cdd
parent5115e6118bc030d2437d7fa73bb50f1fd31e28d3
EBookBackendSqliteDB: Avoid summary introspection on initial creation.

The summary introspection does not introspect whether regular prefix
indexes are created, which is acceptable since it does not effect queries.

However since we introspect before creating the indexes, we lose the
configured index information which is needed to initially create those
indexes.

This patch simply checks if the table exists when initially creating
the summary and avoids the introspection if the table is being created
for the first time.
addressbook/libedata-book/e-book-backend-sqlitedb.c