EBookBackendSqliteDB: Avoid errors on conflicting summaries
authorTristan Van Berkom <tristanvb@openismus.com>
Fri, 23 Nov 2012 09:45:33 +0000 (18:45 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Fri, 23 Nov 2012 13:03:25 +0000 (22:03 +0900)
commit4130235c9c43e50094135e59d012b6a69327dfb2
treef055424f29224568a008ca54837eb190d5ed202b
parent38621444df0ea243e5722242d8dc2ec11b19894a
EBookBackendSqliteDB: Avoid errors on conflicting summaries

Added function introspect_summary() to derive the summary information
from a running database.

Now the initialization of the DB is a bit safer:
  o First collect configured summary
  o Create Database (if it doesnt exist) with the configured summary
  o Now derive the summary from the existing database

This ensures that inserts/selects run with the summary configuration
which matches the actual running database, regardless if the DB was
configured with the actual ESourceBackendSummarySetup passed or previously
configured with something else.
addressbook/libedata-book/e-book-backend-sqlitedb.c