[tracker/wip/carlosg/sparql1.1: 45/113] libtracker-data: Do not hardcode string type on objects with variable predicate



commit 81c32cde15eac7ad5b4fcf004e9f418d1c202e08
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Jun 15 18:16:11 2019 +0200

    libtracker-data: Do not hardcode string type on objects with variable predicate
    
    We simply can't infer at query creation time what the right type is, since a
    query with variable predicate will return a mixed set. Leave as "unknown".

 src/libtracker-data/tracker-sparql.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index 8c1712419..000f6652e 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -1256,7 +1256,6 @@ _add_quad (TrackerSparql  *sparql,
                        tracker_variable_set_sample_binding (variable, TRACKER_VARIABLE_BINDING (binding));
 
                if (tracker_token_get_variable (predicate)) {
-                       tracker_binding_set_data_type (binding, TRACKER_PROPERTY_TYPE_STRING);
                        tracker_binding_set_db_column_name (binding, "object");
                        tracker_variable_binding_set_nullable (TRACKER_VARIABLE_BINDING (binding), TRUE);
                } else if (tracker_token_get_path (predicate)) {


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