[brasero/wip/carlosg/tracker3: 2/5] Fix ORDER BY clauses in Tracker search




commit c0dace005ec34b345845aacd1f929fd618b199af
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Dec 24 12:37:13 2020 +0100

    Fix ORDER BY clauses in Tracker search
    
    The ?urn variable is not defined anywhere else in the query, so
    ordering is left undefined. Access the url/filename properly here.

 src/brasero-search-tracker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/brasero-search-tracker.c b/src/brasero-search-tracker.c
index f8c29c0d..94085070 100644
--- a/src/brasero-search-tracker.c
+++ b/src/brasero-search-tracker.c
@@ -307,7 +307,7 @@ brasero_search_tracker_query_start_real (BraseroSearchEngine *search,
        g_string_append (query, ")");
 
        g_string_append (query,
-                        "} ORDER BY DESC(nie:url(?urn)) DESC(nfo:fileName(?urn))");
+                        "} ORDER BY DESC(?url) DESC(nfo:fileName(?file))");
 
        tracker_sparql_connection_query_async (priv->connection,
                                               query->str,


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