[tracker] SPARQL: Accept semicolon as separator between update operations
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] SPARQL: Accept semicolon as separator between update operations
- Date: Mon, 27 Dec 2010 14:37:36 +0000 (UTC)
commit 85fe00f0469ac8928dd03206641f401737ca6d89
Author: Jürg Billeter <j bitron ch>
Date: Mon Dec 27 15:30:53 2010 +0100
SPARQL: Accept semicolon as separator between update operations
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 9411af0..1fafb99 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -483,6 +483,10 @@ public class Tracker.Sparql.Query : Object {
default:
throw get_error ("expected INSERT or DELETE");
}
+
+ // semicolon is used to separate multiple operations in the current SPARQL Update draft
+ // keep it optional for now to reatin backward compatibility
+ accept (SparqlTokenType.SEMICOLON);
}
return blank_nodes;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]