[tracker] Fixed property functions to support resource variables
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Fixed property functions to support resource variables
- Date: Wed, 9 Dec 2009 13:05:18 +0000 (UTC)
commit c2aec003d0b6ff87831609b966bf079ddd806949
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Dec 9 14:03:16 2009 +0100
Fixed property functions to support resource variables
src/libtracker-data/tracker-sparql-query.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index d7b981f..f085646 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -1364,7 +1364,11 @@ public class Tracker.SparqlQuery : Object {
}
if (prop.multiple_values) {
- sql.append_printf ("(SELECT GROUP_CONCAT(\"%s\",',') FROM \"%s_%s\" WHERE ID = ", prop.name, prop.domain.name, prop.name);
+ sql.append ("(SELECT GROUP_CONCAT(");
+ long begin = sql.len;
+ sql.append_printf ("\"%s\"", prop.name);
+ convert_expression_to_string (sql, prop.data_type, begin);
+ sql.append_printf (",',') FROM \"%s_%s\" WHERE ID = ", prop.domain.name, prop.name);
translate_expression (sql);
sql.append (")");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]