evolution-data-server r10021 - trunk/camel



Author: msuman
Date: Mon Feb  2 03:56:21 2009
New Revision: 10021
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=10021&view=rev

Log:
Patch from Matt McCutchen 2: Fix for bug #569405 (Ensure that the header is not NULL).

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	Mon Feb  2 03:56:21 2009
@@ -371,7 +371,7 @@
 					value = get_db_safe_string (tstr);
 					g_free (tstr);
 				}
-				str = g_strdup_printf("(%s LIKE %s)", headername, value);
+				str = g_strdup_printf("(%s IS NOT NULL AND %s LIKE %s)", headername, headername, value);
 				g_free(value);
 			}
 		}



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