[tracker/wip/carlosg/more-tests: 1/12] libtracker-data: Fix tracker:title-sort
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/more-tests: 1/12] libtracker-data: Fix tracker:title-sort
- Date: Tue, 29 Sep 2020 13:51:10 +0000 (UTC)
commit 200a8fa989185bec2601f3cbe0eff22318669899
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Sep 10 19:26:21 2020 +0200
libtracker-data: Fix tracker:title-sort
With a hack really, up in the parse tree we do force "COLLATE TRACKER"
on all string arguments passed on ORDER BY. Make this return "unknown"
just so this is avoided.
tracker:title-sort() is not meant to produce a pretty visible string,
more a collation key, perhaps it is somewhat fitting, perhaps I'm
making up an excuse.
src/libtracker-data/tracker-sparql.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index ab2d7d735..e7393cdf9 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -7741,6 +7741,7 @@ handle_custom_function (TrackerSparql *sparql,
} else if (g_str_equal (function, TRACKER_NS "title-order")) {
_call_rule (sparql, NAMED_RULE_ArgList, error);
_append_string (sparql, "COLLATE " TRACKER_TITLE_COLLATION_NAME " ");
+ sparql->current_state.expression_type = TRACKER_PROPERTY_TYPE_UNKNOWN;
} else if (g_str_equal (function, TRACKER_NS "ascii-lower-case")) {
sparql->current_state->convert_to_string = TRUE;
_append_string (sparql, "lower (");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]