[tracker] SPARQL: Limit scope of blank nodes in insert templates
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] SPARQL: Limit scope of blank nodes in insert templates
- Date: Thu, 19 Nov 2009 15:46:43 +0000 (UTC)
commit c13cda33932d5fd035f6bc597ad57f20c1cfe57a
Author: Jürg Billeter <j bitron ch>
Date: Thu Nov 19 16:32:51 2009 +0100
SPARQL: Limit scope of blank nodes in insert templates
Blank nodes should be scoped to the template for each solution.
src/libtracker-data/tracker-sparql-query.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 9633657..2f37f42 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -862,6 +862,10 @@ public class Tracker.SparqlQuery : Object {
// iterate over all solutions
if (result_set != null) {
do {
+ // blank nodes in construct templates are per solution
+
+ uuid_generate (base_uuid);
+
// get values of all variables to be bound
var var_value_map = new HashTable<string,string>.full (str_hash, str_equal, g_free, g_free);
int var_idx = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]