Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
evolution-data-server
bnc-478029_flat-file-migrate.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bnc-478029_flat-file-migrate.patch of Package evolution-data-server
diff --git a/camel/camel-db.c b/camel/camel-db.c index 8cc23d1..7275633 100644 --- a/camel/camel-db.c +++ b/camel/camel-db.c @@ -1206,15 +1206,15 @@ camel_db_migrate_folder_prepare (CamelDB *cdb, const char *folder_name, gint ver * RENAMED: msg_security to dirty * */ - table_creation_query = sqlite3_mprintf ("DROP TABLE IF EXISTS 'mem.%q'", folder_name); + table_creation_query = sqlite3_mprintf ("DROP TABLE IF EXISTS '%s.%q'", CAMEL_DB_IN_MEMORY_DB, folder_name); ret = camel_db_add_to_transaction (cdb, table_creation_query, ex); sqlite3_free (table_creation_query); - table_creation_query = sqlite3_mprintf ("CREATE TEMP TABLE IF NOT EXISTS 'mem.%q' ( uid TEXT PRIMARY KEY , flags INTEGER , msg_type INTEGER , read INTEGER , deleted INTEGER , replied INTEGER , important INTEGER , junk INTEGER , attachment INTEGER , dirty INTEGER , size INTEGER , dsent NUMERIC , dreceived NUMERIC , subject TEXT , mail_from TEXT , mail_to TEXT , mail_cc TEXT , mlist TEXT , followup_flag TEXT , followup_completed_on TEXT , followup_due_by TEXT , part TEXT , labels TEXT , usertags TEXT , cinfo TEXT , bdata TEXT, created TEXT, modified TEXT )", folder_name); + table_creation_query = sqlite3_mprintf ("CREATE TEMP TABLE IF NOT EXISTS '%s.%q' ( uid TEXT PRIMARY KEY , flags INTEGER , msg_type INTEGER , read INTEGER , deleted INTEGER , replied INTEGER , important INTEGER , junk INTEGER , attachment INTEGER , dirty INTEGER , size INTEGER , dsent NUMERIC , dreceived NUMERIC , subject TEXT , mail_from TEXT , mail_to TEXT , mail_cc TEXT , mlist TEXT , followup_flag TEXT , followup_completed_on TEXT , followup_due_by TEXT , part TEXT , labels TEXT , usertags TEXT , cinfo TEXT , bdata TEXT, created TEXT, modified TEXT )", CAMEL_DB_IN_MEMORY_DB, folder_name); ret = camel_db_add_to_transaction (cdb, table_creation_query, ex); sqlite3_free (table_creation_query); - table_creation_query = sqlite3_mprintf ("INSERT INTO 'mem.%q' SELECT uid , flags , msg_type , read , deleted , replied , important , junk , attachment , msg_security , size , dsent , dreceived , subject , mail_from , mail_to , mail_cc , mlist , followup_flag , followup_completed_on , followup_due_by , part , labels , usertags , cinfo , bdata , strftime(\"%%s\", 'now'), strftime(\"%%s\", 'now') FROM %Q", folder_name, folder_name); + table_creation_query = sqlite3_mprintf ("INSERT INTO '%s.%q' SELECT uid , flags , msg_type , read , deleted , replied , important , junk , attachment , msg_security , size , dsent , dreceived , subject , mail_from , mail_to , mail_cc , mlist , followup_flag , followup_completed_on , followup_due_by , part , labels , usertags , cinfo , bdata , strftime(\"%%s\", 'now'), strftime(\"%%s\", 'now') FROM %Q", CAMEL_DB_IN_MEMORY_DB, folder_name, folder_name); ret = camel_db_add_to_transaction (cdb, table_creation_query, ex); sqlite3_free (table_creation_query); @@ -1240,11 +1240,11 @@ camel_db_migrate_folder_recreate (CamelDB *cdb, const char *folder_name, gint ve /* Migration stage two: writing back the old data */ if (version < 1) { - table_creation_query = sqlite3_mprintf ("INSERT INTO %Q SELECT uid , flags , msg_type , read , deleted , replied , important , junk , attachment , dirty , size , dsent , dreceived , subject , mail_from , mail_to , mail_cc , mlist , followup_flag , followup_completed_on , followup_due_by , part , labels , usertags , cinfo , bdata, created, modified FROM 'mem.%q'", folder_name, folder_name); + table_creation_query = sqlite3_mprintf ("INSERT INTO %Q SELECT uid , flags , msg_type , read , deleted , replied , important , junk , attachment , dirty , size , dsent , dreceived , subject , mail_from , mail_to , mail_cc , mlist , followup_flag , followup_completed_on , followup_due_by , part , labels , usertags , cinfo , bdata, created, modified FROM '%s.%q'", folder_name, CAMEL_DB_IN_MEMORY_DB, folder_name); ret = camel_db_add_to_transaction (cdb, table_creation_query, ex); sqlite3_free (table_creation_query); - table_creation_query = sqlite3_mprintf ("DROP TABLE 'mem.%q'", folder_name); + table_creation_query = sqlite3_mprintf ("DROP TABLE '%s.%q'", CAMEL_DB_IN_MEMORY_DB, folder_name); ret = camel_db_add_to_transaction (cdb, table_creation_query, ex); sqlite3_free (table_creation_query); } diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index f448f84..e4814f4 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -1242,7 +1242,7 @@ camel_folder_summary_migrate_infos(CamelFolderSummary *s) return -1; } - ret = save_message_infos_to_db (s, TRUE, &ex); + ret = save_message_infos_to_db (s, FALSE, &ex); if (ret != 0) { return -1;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor