[tracker/wip/carlosg/fixes-for-music] libtracker-data: Do not force cursor column types to be strings



commit 3588ac64a34a635e0fdcf14a3338dbaa0ca955fe
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Nov 17 11:42:21 2018 +0100

    libtracker-data: Do not force cursor column types to be strings
    
    We must propagate the original types, despite converting the
    resultset to string in the topmost select. Fixes warnings in the
    bus backend (seen with several flatpak apps), since it's not as
    lenient as the direct one wrt fetching values with the "wrong"
    vfunc.

 src/libtracker-data/tracker-sparql.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index 12e321a23..2a0f100ee 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -1916,10 +1916,8 @@ translate_SelectClause (TrackerSparql  *sparql,
                                old = tracker_sparql_swap_builder (sparql, str);
                                _call_rule (sparql, NAMED_RULE_Expression, error);
 
-                               if (sparql->current_state.select_context == sparql->context) {
+                               if (sparql->current_state.select_context == sparql->context)
                                        convert_expression_to_string (sparql, 
sparql->current_state.expression_type);
-                                       sparql->current_state.expression_type = TRACKER_PROPERTY_TYPE_STRING;
-                               }
 
                                select_context->type = sparql->current_state.expression_type;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]