[tracker] SPARQL: Simplify SQL for GROUP BY
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] SPARQL: Simplify SQL for GROUP BY
- Date: Wed, 12 Aug 2009 09:08:38 +0000 (UTC)
commit 00db0df2116f9dfbed6906b6be24bc71d25b3d74
Author: Jürg Billeter <j bitron ch>
Date: Wed Aug 12 10:59:59 2009 +0200
SPARQL: Simplify SQL for GROUP BY
src/libtracker-data/tracker-sparql-query.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 9933705..61b3c69 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -493,7 +493,7 @@ public class Tracker.SparqlQuery : Object {
assert (group.arg1.literal.type == Rasqal.Literal.Type.VARIABLE);
string variable_name = group.arg1.literal.as_variable ().name;
- sql.append (get_sql_for_variable (variable_name));
+ sql.append_printf ("\"%s_u\"", variable_name);
if (group.op == Rasqal.Op.GROUP_COND_DESC) {
sql.append (" DESC");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]