[evolution-data-server] Bug 586602 – folder messages are lost on folder rename



commit e797b853c3064ce682d5b45b71c047ea510c7a84
Author: Lucian Langa <lucilanga gnome org>
Date:   Mon Jun 29 08:08:39 2009 +0300

    Bug 586602 â?? folder messages are lost on folder rename

 camel/camel-db.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-db.c b/camel/camel-db.c
index 34007e6..0af9da9 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -1737,6 +1737,10 @@ camel_db_rename_folder (CamelDB *cdb, const gchar *old_folder, const gchar *new_
 	ret = camel_db_add_to_transaction (cdb, cmd, ex);
 	sqlite3_free (cmd);
 
+	cmd = sqlite3_mprintf ("ALTER TABLE '%q_version' RENAME TO  '%q_version'", old_folder, new_folder);
+        ret = camel_db_add_to_transaction (cdb, cmd, ex);
+        sqlite3_free (cmd);
+
 	cmd = sqlite3_mprintf ("UPDATE %Q SET modified=strftime(\"%%s\", 'now'), created=strftime(\"%%s\", 'now')", new_folder);
 	ret = camel_db_add_to_transaction (cdb, cmd, ex);
 	sqlite3_free (cmd);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]