[tracker/wip/carlosg/photos-fixes: 5/6] libtracker-data: Use correct TrackerContext to track literals/variables
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/photos-fixes: 5/6] libtracker-data: Use correct TrackerContext to track literals/variables
- Date: Fri, 21 Aug 2020 13:22:41 +0000 (UTC)
commit 1b1ade1597a5bf5c26807228f9462dfa0ab2152e
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 21 15:14:35 2020 +0200
libtracker-data: Use correct TrackerContext to track literals/variables
These are accounted in the topmost context, so use that. Fixes warnings
when embedding VALUES clauses in subselects.
Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/238
Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/242
src/libtracker-data/tracker-sparql.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index a0cff5047..f6614c750 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -5470,7 +5470,7 @@ translate_DataBlockValue (TrackerSparql *sparql,
return TRUE;
}
- select_context = TRACKER_SELECT_CONTEXT (sparql->current_state.select_context);
+ select_context = TRACKER_SELECT_CONTEXT (sparql->context);
rule = _current_rule (sparql);
switch (rule) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]