[tracker/datatype-support] Handle an invalid datatype filter
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/datatype-support] Handle an invalid datatype filter
- Date: Mon, 3 Aug 2009 09:27:29 +0000 (UTC)
commit 35712adbd9388ac90cd26fd04535bb9f1cb195a1
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Aug 3 11:26:47 2009 +0200
Handle an invalid datatype filter
src/libtracker-data/tracker-sparql-query.vala | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 934495c..c209964 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -1201,12 +1201,8 @@ public class Tracker.SparqlQuery : Object {
}
pattern_sql.append_printf ("(SELECT ID FROM \"rdfs:Resource\" WHERE Uri = '%s')", binding.type);
- } else if (expr.arg1.literal.type != Rasqal.Literal.Type.URI) {
- // Rasqal already takes care of this, but I added it here
- // for the reader of this code to understand what goes on
- pattern_sql.append ("(SELECT ID FROM \"rdfs:Resource\" WHERE Uri = 'http://www.w3.org/2001/XMLSchema#string'");
} else {
- pattern_sql.append ("(SELECT ID FROM \"rdfs:Resource\" WHERE Uri = 'http://www.w3.org/2000/01/rdf-schema#Resource'");
+ throw new SparqlError.PARSE ("Invalid FILTER");
}
break;
case Rasqal.Op.LITERAL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]