tracker r2172 - in branches/indexer-split: . src/trackerd
- From: mottela svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2172 - in branches/indexer-split: . src/trackerd
- Date: Wed, 27 Aug 2008 16:39:54 +0000 (UTC)
Author: mottela
Date: Wed Aug 27 16:39:54 2008
New Revision: 2172
URL: http://svn.gnome.org/viewvc/tracker?rev=2172&view=rev
Log:
Fixed a crash in rdf-queries because of '%' in sql statements
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/trackerd/tracker-rdf-query.c
Modified: branches/indexer-split/src/trackerd/tracker-rdf-query.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-rdf-query.c (original)
+++ branches/indexer-split/src/trackerd/tracker-rdf-query.c Wed Aug 27 16:39:54 2008
@@ -837,11 +837,11 @@
sub = strchr (data->current_value, '*');
if (sub) {
- g_string_append_printf (str, " (%s like '%%%s%%') ",
+ g_string_append_printf (str, " (%s like '%%%%%s%%%%') ",
where_field,
data->current_value);
} else {
- g_string_append_printf (str, " (%s like '%%%s%%') ",
+ g_string_append_printf (str, " (%s like '%%%%%s%%%%') ",
where_field,
data->current_value);
}
@@ -855,7 +855,7 @@
where_field,
data->current_value);
} else {
- g_string_append_printf (str, " (%s like '%s%%') ",
+ g_string_append_printf (str, " (%s like '%s%%%%') ",
where_field,
data->current_value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]