[tracker] SPARQL: Do not support AS outside of select expressions



commit 5535c9d89a8805615c4ed6369d004fd1cb2b19ed
Author: Jürg Billeter <j bitron ch>
Date:   Thu Dec 17 11:22:59 2009 +0100

    SPARQL: Do not support AS outside of select expressions

 src/libtracker-data/tracker-sparql-query.vala |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 8e95096..a5b3c36 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -1272,9 +1272,6 @@ public class Tracker.SparqlQuery : Object {
 				long begin = sql.len;
 				var type = translate_function (sql, binding.literal);
 				expect (SparqlTokenType.CLOSE_PARENS);
-				if (accept (SparqlTokenType.AS)) {
-					expect (SparqlTokenType.PN_PREFIX);
-				}
 				convert_expression_to_string (sql, type, begin);
 			} else {
 				sql.append ("?");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]