[evolution-data-server] Bug #590044 - Drop index on all columns of sqlite database



commit 10752caaf2304483d0d3e5d947fca6c9fdf32592
Author: Romuald Brunet <romuald gandi net>
Date:   Thu Aug 13 09:39:00 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]