Commit 000e0ed8 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

tracker3: Allow again full queries in grl_source_query()

GNOME Music strongly relies on this.
parent 83f7b63c
......@@ -602,13 +602,21 @@ grl_tracker_source_query (GrlSource *source,
goto send_error;
}
statement =
grl_tracker_source_create_statement (GRL_TRACKER_SOURCE (source),
GRL_TRACKER_QUERY_ALL,
qs->options,
qs->keys,
qs->query,
&error);
if (g_ascii_strncasecmp (qs->query, "select ", 7) == 0) {
statement =
tracker_sparql_connection_query_statement (GRL_TRACKER_SOURCE (source)->priv->tracker_connection,
qs->query,
NULL, &error);
} else {
statement =
grl_tracker_source_create_statement (GRL_TRACKER_SOURCE (source),
GRL_TRACKER_QUERY_ALL,
qs->options,
qs->keys,
qs->query,
&error);
}
if (!statement)
goto send_error;
......
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