[tracker/parser] SPARQL: Fix for isiri(<foo>)
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/parser] SPARQL: Fix for isiri(<foo>)
- Date: Thu, 13 Aug 2009 09:17:27 +0000 (UTC)
commit d2a26785ce04a24c4c25754b186916cc76922af6
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Aug 13 11:16:30 2009 +0200
SPARQL: Fix for isiri(<foo>)
src/libtracker-data/tracker-sparql-query.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 6ecffcb..95ea075 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -1040,7 +1040,10 @@ public class Tracker.SparqlQuery : Object {
var new_binding = new LiteralBinding ();
new_binding.literal_type = DataType.INTEGER;
- if (translate_expression (new StringBuilder ()) == DataType.RESOURCE) {
+ if (current() == SparqlTokenType.IRI_REF) {
+ new_binding.literal = "1";
+ next ();
+ } else if (translate_expression (new StringBuilder ()) == DataType.RESOURCE) {
new_binding.literal = "1";
} else {
new_binding.literal = "0";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]