[evolution-data-server] Bug 586602 – folder messages are lost on folder rename
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Bug 586602 – folder messages are lost on folder rename
- Date: Mon, 29 Jun 2009 05:18:53 +0000 (UTC)
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]