[evolution-data-server/gnome-2-28] Bug #590044 - Drop index on all columns of sqlite database
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-28] Bug #590044 - Drop index on all columns of sqlite database
- Date: Thu, 13 Aug 2009 07:42:19 +0000 (UTC)
commit 200900192c11023e81bd0d76958d4d2acf297279
Author: Romuald Brunet <romuald gandi net>
Date: Thu Aug 13 09:40:24 2009 +0200
Bug #590044 - Drop index on all columns of sqlite database
camel/camel-db.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-db.c b/camel/camel-db.c
index 696b6e9..b994e99 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -1151,7 +1151,7 @@ camel_db_create_message_info_table (CamelDB *cdb, const gchar *folder_name, Came
/* FIXME: sqlize folder_name before you create the index */
safe_index = g_strdup_printf("SINDEX-%s", folder_name);
- table_creation_query = sqlite3_mprintf ("CREATE INDEX IF NOT EXISTS %Q ON %Q (uid, flags, size, dsent, dreceived, subject, mail_from, mail_to, mail_cc, mlist, part, labels, usertags, cinfo, bdata)", safe_index, folder_name);
+ table_creation_query = sqlite3_mprintf ("DROP INDEX IF EXISTS %Q", safe_index);
ret = camel_db_add_to_transaction (cdb, table_creation_query, ex);
g_free (safe_index);
sqlite3_free (table_creation_query);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]