[tracker/wip/carlosg/datetime-comparisons: 56/61] libtracker-data: Handle xsd:date along xsd:dateTime in condition
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/datetime-comparisons: 56/61] libtracker-data: Handle xsd:date along xsd:dateTime in condition
- Date: Sat, 8 May 2021 10:40:37 +0000 (UTC)
commit 817e0afabb1e4287503faa772a04799a1c44aa6e
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Apr 12 01:10:58 2021 +0200
libtracker-data: Handle xsd:date along xsd:dateTime in condition
These two should be handled the same here.
src/libtracker-data/tracker-sparql.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index d0fef654b..a2eba01d6 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -2474,7 +2474,8 @@ _end_triples_block (TrackerSparql *sparql,
first = FALSE;
binding = g_ptr_array_index (triple_context->literal_bindings, i);
- if (binding->data_type == TRACKER_PROPERTY_TYPE_DATETIME) {
+ if (binding->data_type == TRACKER_PROPERTY_TYPE_DATE ||
+ binding->data_type == TRACKER_PROPERTY_TYPE_DATETIME) {
_append_string_printf (sparql, "SparqlTimeSort (%s) = SparqlTimeSort (",
tracker_binding_get_sql_expression (binding));
_append_literal_sql (sparql, TRACKER_LITERAL_BINDING (binding));
_append_string (sparql, ") ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]