[grilo-plugins/wip/carlosg/tracker3: 38/41] tracker3: Allow again full queries in grl_source_query()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/carlosg/tracker3: 38/41] tracker3: Allow again full queries in grl_source_query()
- Date: Sun, 28 Jun 2020 17:11:09 +0000 (UTC)
commit 5cbb145b06fb672fb10c197c1bffe7da8acedc34
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu May 28 11:23:51 2020 +0200
tracker3: Allow again full queries in grl_source_query()
GNOME Music strongly relies on this.
src/tracker3/grl-tracker-source-api.c | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/src/tracker3/grl-tracker-source-api.c b/src/tracker3/grl-tracker-source-api.c
index 04ed5752..cc8ce200 100644
--- a/src/tracker3/grl-tracker-source-api.c
+++ b/src/tracker3/grl-tracker-source-api.c
@@ -590,13 +590,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]