evolution-data-server r9766 - trunk/camel



Author: sragavan
Date: Wed Nov 19 05:10:34 2008
New Revision: 9766
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9766&view=rev

Log:
2008-11-19  Srinivasa Ragavan  <sragavan novell com>

	** Fix for bug #558883

	* camel/camel-db.c: Remove the redundant transaction lock.




Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-search-sql-sexp.c

Modified: trunk/camel/camel-search-sql-sexp.c
==============================================================================
--- trunk/camel/camel-search-sql-sexp.c	(original)
+++ trunk/camel/camel-search-sql-sexp.c	Wed Nov 19 05:10:34 2008
@@ -150,8 +150,12 @@
 	
 	if (r1->type == ESEXP_RES_STRING) {
 		r = e_sexp_result_new(f, ESEXP_RES_STRING);
-		r->value.string = g_strdup_printf ("(NOT (%s))",
-						   r1->value.string);
+		/* HACK: Fix and handle completed-on better. */
+		if (strcmp(r1->value.string, "( (usertags LIKE '%completed-on 0%' AND usertags LIKE '%completed-on%') )") == 0)
+			r->value.string = g_strdup ("( (not (usertags LIKE '%completed-on 0%')) AND usertags LIKE '%completed-on%' )");
+		else			
+			r->value.string = g_strdup_printf ("(NOT (%s))",
+							   r1->value.string);
 	}
 	e_sexp_result_free (f, r1);
 
@@ -439,7 +443,7 @@
 	r = e_sexp_result_new(f, ESEXP_RES_STRING);
 	/* Hacks no otherway to fix these really :( */
 	if (strcmp(argv[0]->value.string, "completed-on") == 0)
-		r->value.string = g_strdup_printf("usertags NOT LIKE '%ccompleted-on%c'", '%', '%');
+		r->value.string = g_strdup_printf("(usertags LIKE '%ccompleted-on 0%c' AND usertags LIKE '%ccompleted-on%c')", '%', '%', '%', '%');
 	else if (strcmp(argv[0]->value.string, "follow-up") == 0)
 		r->value.string = g_strdup_printf("usertags NOT LIKE '%cfollow-up%c'", '%', '%');
 	else



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