Commit 836975a1 authored by Cosimo Cecchi's avatar Cosimo Cecchi

tracker: fix an error with latest Tracker

We name some query column variable results with "AS ?foo", but Tracker
now errors out on those clauses, not returning any result.
Since we don't need them, just remove them from the query string.

https://bugzilla.gnome.org/show_bug.cgi?id=693195
parent fc3c03fc
......@@ -261,7 +261,7 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
mime_count = g_list_length (mimetypes);
sparql = g_string_new ("SELECT DISTINCT nie:url(?urn) fts:rank(?urn) tracker:coalesce(nfo:fileLastModified(?urn), nie:contentLastModified(?urn)) AS ?mtime tracker:coalesce(nfo:fileLastAccessed(?urn), nie:contentAccessed(?urn)) AS ?atime "
sparql = g_string_new ("SELECT DISTINCT nie:url(?urn) fts:rank(?urn) tracker:coalesce(nfo:fileLastModified(?urn), nie:contentLastModified(?urn)) tracker:coalesce(nfo:fileLastAccessed(?urn), nie:contentAccessed(?urn)) "
"WHERE {"
" ?urn a nfo:FileDataObject ;"
" tracker:available true ; ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment