[tracker/wip/carlosg/datetime-fixes: 3/5] libtracker-data: Forward errors from datetime conversions in SparqlTimeSort




commit 9a0a37563cc58868177a3cac3bf377edb810458d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Oct 10 13:39:02 2020 +0200

    libtracker-data: Forward errors from datetime conversions in SparqlTimeSort
    
    Let this helper SQLITE function forward the datetime conversion, should
    there be one.

 src/libtracker-data/tracker-db-interface-sqlite.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c 
b/src/libtracker-data/tracker-db-interface-sqlite.c
index 23b7b7967..c6a20a84c 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -530,7 +530,7 @@ function_sparql_time_sort (sqlite3_context *context,
                time = tracker_string_to_date (value, NULL, &error);
 
                if (error) {
-                       result_context_function_error (context, fn, "Failed time string conversion");
+                       result_context_function_error (context, fn, error->message);
                        g_error_free (error);
                        return;
                }


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