[tracker/wip/carlosg/transact-graphs: 1/4] libtracker-data: Use general function for graph lookups
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/transact-graphs: 1/4] libtracker-data: Use general function for graph lookups
- Date: Sun, 23 Aug 2020 21:57:12 +0000 (UTC)
commit 194e159e31ee738a09fb6c8c3dd851675e18c739
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 23 23:29:34 2020 +0200
libtracker-data: Use general function for graph lookups
This function is actually intended to channel all graph lookups
happening in TrackerSparql, these places were missed.
src/libtracker-data/tracker-sparql.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index f4e7e5b28..650807dbe 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -869,7 +869,7 @@ _prepend_path_element (TrackerSparql *sparql,
graph = tracker_token_get_idstring (&sparql->current_state.graph);
- if (tracker_data_manager_find_graph (sparql->data_manager, graph)) {
+ if (tracker_sparql_find_graph (sparql, graph)) {
table_name = g_strdup_printf ("\"%s\".\"%s\"", graph,
tracker_property_get_table_name
(path_elem->data.property));
graph_column = g_strdup_printf ("%d",
@@ -7381,7 +7381,7 @@ handle_property_function (TrackerSparql *sparql,
graph = tracker_token_get_idstring (&sparql->current_state.graph);
- if (tracker_data_manager_find_graph (sparql->data_manager, graph)) {
+ if (tracker_sparql_find_graph (sparql, graph)) {
_append_string_printf (sparql, "FROM \"%s\".\"%s\" ",
graph,
tracker_property_get_table_name (property));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]