[tracker/tracker-0.10] libtracker-data: Modify Sparql parser to have tracker:uri-is-descendant() take varargs



commit ace4b9b49565bb7d06fee3d266ab1d2ba479ce98
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Mar 7 18:45:39 2011 +0100

    libtracker-data: Modify Sparql parser to have tracker:uri-is-descendant() take varargs

 src/libtracker-data/tracker-sparql-expression.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-expression.vala b/src/libtracker-data/tracker-sparql-expression.vala
index 83445e0..ce111b0 100644
--- a/src/libtracker-data/tracker-sparql-expression.vala
+++ b/src/libtracker-data/tracker-sparql-expression.vala
@@ -676,7 +676,11 @@ class Tracker.Sparql.Expression : Object {
 			sql.append (", ");
 			expect (SparqlTokenType.COMMA);
 
-			translate_expression_as_string (sql);
+                        translate_expression_as_string (sql);
+                        while (accept (SparqlTokenType.COMMA)) {
+			      sql.append (", ");
+			      translate_expression_as_string (sql);
+			}
 			sql.append (")");
 
 			return PropertyType.BOOLEAN;



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