[tracker] SPARQL: Implicitly convert fn:concat arguments to string



commit f77ec6521c362eeeaa8c64a7ade79dc82fef3ee1
Author: Jürg Billeter <j bitron ch>
Date:   Mon Dec 20 12:13:39 2010 +0100

    SPARQL: Implicitly convert fn:concat arguments to string
    
    Fixes NB#213419.

 src/libtracker-data/tracker-sparql-expression.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-expression.vala b/src/libtracker-data/tracker-sparql-expression.vala
index 45458d6..2ad1406 100644
--- a/src/libtracker-data/tracker-sparql-expression.vala
+++ b/src/libtracker-data/tracker-sparql-expression.vala
@@ -459,10 +459,10 @@ class Tracker.Sparql.Expression : Object {
 
 			return PropertyType.STRING;
 		} else if (uri == FN_NS + "concat") {
-			translate_expression (sql);
+			translate_expression_as_string (sql);
 			sql.append ("||");
 			expect (SparqlTokenType.COMMA);
-			translate_expression (sql);
+			translate_expression_as_string (sql);
 			while (accept (SparqlTokenType.COMMA)) {
 			      sql.append ("||");
 			      translate_expression (sql);



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