evolution-data-server r9510 - trunk/camel
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9510 - trunk/camel
- Date: Wed, 10 Sep 2008 05:49:34 +0000 (UTC)
Author: sragavan
Date: Wed Sep 10 05:49:34 2008
New Revision: 9510
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9510&view=rev
Log:
2008-09-10 Srinivasa Ragavan <sragavan novell com>
** Fix for BNC bug #418080
* camel/camel-search-sql-sexp.c: Match contains using %like%.
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 Sep 10 05:49:34 2008
@@ -363,7 +363,9 @@
value = get_db_safe_string (tstr);
g_free (tstr);
} else if (how == CAMEL_SEARCH_MATCH_EXACT) {
- value = get_db_safe_string(argv[i]->value.string);
+ tstr = g_strdup_printf ("%c%s%c", '%', argv[i]->value.string, '%');
+ value = get_db_safe_string (tstr);
+ g_free (tstr);
}
str = g_strdup_printf("(%s LIKE %s)", headername, value);
g_free(value);
@@ -708,7 +710,7 @@
for (i=0; i < G_N_ELEMENTS(txt); i++) {
char *sql = NULL;
printf("Q: %s\n\"%c\"\n", txt[i], 40);
- sql = camel_e_sexp_to_sql (txt[i]);
+ sql = camel_sexp_to_sql_sexp (txt[i]);
printf("A: %s\n\n\n", sql);
g_free (sql);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]