[tracker/tracker-0.6] Fixes NB#119840, Music-Artists -Library view not displayed by tapping on
- From: Mikael Ottela <mottela src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-0.6] Fixes NB#119840, Music-Artists -Library view not displayed by tapping on
- Date: Thu, 4 Jun 2009 12:59:02 -0400 (EDT)
commit e201076bc04619d05b000b1317b92f39d27d7781
Author: Mikael Ottela <mikael ottela ixonos com>
Date: Thu Jun 4 19:55:25 2009 +0300
Fixes NB#119840, Music-Artists -Library view not displayed by tapping on
(unknown Artist)
Update the check for empty string value for NULL include.
---
src/libtracker-data/tracker-rdf-query.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/libtracker-data/tracker-rdf-query.c b/src/libtracker-data/tracker-rdf-query.c
index 311e750..db61534 100644
--- a/src/libtracker-data/tracker-rdf-query.c
+++ b/src/libtracker-data/tracker-rdf-query.c
@@ -813,7 +813,9 @@ build_sql (ParserData *data)
where_field,
data->current_value);
} else {
- if ( !strlen(value) || (strcmp(value, " '' ") == 0) ) {
+ /* FIXME This check is too fragile */
+ g_debug ("value:(%s)", value);
+ if ( !strlen(value) || (strcmp(value, "''") == 0) ) {
tracker_field_data_set_needs_null (field_data, TRUE);
g_string_append_printf (str, " ((%s = '') OR %s IS NULL) ",
where_field,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]