[tracker] Added a case that rasqal does itself, for clarity
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Added a case that rasqal does itself, for clarity
- Date: Thu, 30 Jul 2009 16:34:56 +0000 (UTC)
commit f57c154559e6dc576fea9487cf403a501052c308
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Jul 30 18:34:27 2009 +0200
Added a case that rasqal does itself, for clarity
src/libtracker-data/tracker-sparql-query.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 6c8ecf1..0636a87 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -1147,6 +1147,12 @@ public class Tracker.SparqlQuery : Object {
} else {
visit_filter (expr.arg1);
}
+ } 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
+ // Note that rasqal will have converted a str(<urn:something>)
+ // to a literal string 'urn:something'
+ pattern_sql.append_printf ("'%s'", expr.arg1.literal.as_string ());
} else {
visit_filter (expr.arg1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]