[tracker] SPARQL: Fix updates with WHERE clause
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] SPARQL: Fix updates with WHERE clause
- Date: Mon, 7 Sep 2009 13:32:42 +0000 (UTC)
commit b48c49cbfa3223824c7d28d6410ef6c9862b0823
Author: Jürg Billeter <j bitron ch>
Date: Mon Sep 7 15:31:40 2009 +0200
SPARQL: Fix updates with WHERE clause
Fixes NB#137408.
src/libtracker-data/tracker-sparql-query.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index ba93fd3..b300c41 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -819,6 +819,8 @@ public class Tracker.SparqlQuery : Object {
translate_group_graph_pattern (pattern_sql);
}
+ var after_where = get_location ();
+
// build SQL
sql.append ("SELECT ");
bool first = true;
@@ -863,6 +865,9 @@ public class Tracker.SparqlQuery : Object {
parse_construct_triples_block (var_value_map);
} while (result_set.iter_next ());
}
+
+ // reset location to the end of the update
+ set_location (after_where);
}
void execute_drop_graph () throws Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]