[tracker/tracker-0.10] SPARQL: Implicitly convert all fn:concat arguments to strings



commit a1b6114cbe00847b2aec4fec23783599212bac3d
Author: Jürg Billeter <j bitron ch>
Date:   Fri Apr 8 15:53:56 2011 +0200

    SPARQL: Implicitly convert all fn:concat arguments to strings
    
    It previously converted only the first two arguments.
    
    Fixes NB#213419.

 src/libtracker-data/tracker-sparql-expression.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-expression.vala b/src/libtracker-data/tracker-sparql-expression.vala
index 679e473..76f6b93 100644
--- a/src/libtracker-data/tracker-sparql-expression.vala
+++ b/src/libtracker-data/tracker-sparql-expression.vala
@@ -505,7 +505,7 @@ class Tracker.Sparql.Expression : Object {
 			translate_expression_as_string (sql);
 			while (accept (SparqlTokenType.COMMA)) {
 			      sql.append ("||");
-			      translate_expression (sql);
+			      translate_expression_as_string (sql);
 			}
 
 			return PropertyType.STRING;



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