[evolution-data-server/gnome-2-26] 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/gnome-2-26] Bug 586602 – folder messages are lost on folder rename
- Date: Mon, 29 Jun 2009 06:56:00 +0000 (UTC)
commit 0eae3e720c3c92b1f0de87ef55ea1446e660ed53
Author: Lucian Langa <lucilanga gnome org>
Date: Mon Jun 29 09:55:28 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 af28366..b7d3c90 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -1668,6 +1668,10 @@ camel_db_rename_folder (CamelDB *cdb, const char *old_folder, const char *new_fo
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]