[tracker/tracker-0.8] SPARQL: Fix generated SQL for triple block following simple optional



commit af9bfad687f59cf32582bc487aef5ca33e7a0cf0
Author: Jürg Billeter <j bitron ch>
Date:   Thu Jun 24 11:40:21 2010 +0200

    SPARQL: Fix generated SQL for triple block following simple optional

 src/libtracker-data/tracker-sparql-pattern.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-pattern.vala b/src/libtracker-data/tracker-sparql-pattern.vala
index 810b76d..cb35cf3 100644
--- a/src/libtracker-data/tracker-sparql-pattern.vala
+++ b/src/libtracker-data/tracker-sparql-pattern.vala
@@ -694,6 +694,7 @@ class Tracker.Sparql.Pattern : Object {
 				// due to not using a JOIN for the simple optional
 				end_triples_block (sql, ref first_where, in_group_graph_pattern);
 				in_triples_block = false;
+				in_group_graph_pattern = true;
 			}
 			if (!in_triples_block) {
 				if (in_group_graph_pattern) {



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