[evolution-data-server/gnome-2-28] Bug #260407 - 'endswith' address book search doesn't work
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-28] Bug #260407 - 'endswith' address book search doesn't work
- Date: Mon, 14 Dec 2009 07:11:03 +0000 (UTC)
commit 54fc495a84b84dda89ac3f0bcd5b733c27611b83
Author: Milan Crha <mcrha redhat com>
Date: Mon Dec 14 12:37:26 2009 +0530
Bug #260407 - 'endswith' address book search doesn't work
servers/exchange/lib/e2k-restriction.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/servers/exchange/lib/e2k-restriction.c b/servers/exchange/lib/e2k-restriction.c
index f8a6c67..41b3ff1 100644
--- a/servers/exchange/lib/e2k-restriction.c
+++ b/servers/exchange/lib/e2k-restriction.c
@@ -614,6 +614,8 @@ rn_to_sql (E2kRestriction *rn, GString *sql, E2kRestrictionType inside)
g_string_append_printf (sql, "\"%s\" ", pv->prop.name);
switch (E2K_FL_MATCH_TYPE (rn->res.content.fuzzy_level)) {
+ case E2K_FL_SUFFIX:
+ /* make suffix same as substring; it'll be checked for suffixes only later */
case E2K_FL_SUBSTRING:
g_string_append (sql, "LIKE '%");
append_sql_quoted (sql, pv->value);
@@ -626,12 +628,6 @@ rn_to_sql (E2kRestriction *rn, GString *sql, E2kRestrictionType inside)
g_string_append (sql, "%'");
break;
- case E2K_FL_SUFFIX:
- g_string_append (sql, "LIKE '%");
- append_sql_quoted (sql, pv->value);
- g_string_append_c (sql, '\'');
- break;
-
case E2K_FL_FULLSTRING:
default:
g_string_append (sql, "= '");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]