[tracker/wip/carlosg/serialize-api] libtracker-data: Forward annotated column type on ASK queries



commit 703cc45c82a08234bb6004138837d05bc3137734
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jan 30 16:08:01 2022 +0100

    libtracker-data: Forward annotated column type on ASK queries
    
    There is a single column that is boolean.

 src/libtracker-data/tracker-sparql.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index 6ffbef47e..776c45790 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -3580,6 +3580,7 @@ translate_AskQuery (TrackerSparql  *sparql,
        tracker_sparql_swap_builder (sparql, old);
 
        _append_string (sparql, ") WHEN 1 THEN 'true' WHEN 0 THEN 'false' ELSE NULL END");
+       handle_value_type_column (sparql, TRACKER_PROPERTY_TYPE_BOOLEAN, NULL);
 
        select_context = TRACKER_SELECT_CONTEXT (sparql->current_state->select_context);
        select_context->n_columns = 1;


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