tracker r3086 - in trunk: . src/libtracker-data



Author: mottela
Date: Fri Mar 13 17:55:04 2009
New Revision: 3086
URL: http://svn.gnome.org/viewvc/tracker?rev=3086&view=rev

Log:
Return undefined integer values with empty field in rdf

Modified:
   trunk/ChangeLog
   trunk/src/libtracker-data/tracker-rdf-query.c

Modified: trunk/src/libtracker-data/tracker-rdf-query.c
==============================================================================
--- trunk/src/libtracker-data/tracker-rdf-query.c	(original)
+++ trunk/src/libtracker-data/tracker-rdf-query.c	Fri Mar 13 17:55:04 2009
@@ -821,7 +821,7 @@
 						where_field,
 						data->current_value);
 		} else {
-			if (strcmp(value, " '' ") == 0) {
+			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]