[tracker/sparql-refactor: 13/16] SPARQL: Fix predicate variables with literal object



commit c5cd4fed9abd870a1b8d0b81b931e961b875469e
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 30 17:18:59 2010 +0200

    SPARQL: Fix predicate variables with literal object

 src/libtracker-data/tracker-sparql-pattern.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-pattern.vala b/src/libtracker-data/tracker-sparql-pattern.vala
index 269fb19..364573c 100644
--- a/src/libtracker-data/tracker-sparql-pattern.vala
+++ b/src/libtracker-data/tracker-sparql-pattern.vala
@@ -1233,7 +1233,7 @@ class Tracker.Sparql.Pattern : Object {
 				// single subject
 				table.predicate_variable.subject = current_subject;
 			}
-			if (!current_subject_is_var) {
+			if (!object_is_var) {
 				// single object
 				table.predicate_variable.object = object;
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]