[tracker/wip/carlosg/datetime-comparisons: 60/61] libtracker-data: Allow ^^ casts on parameters
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/datetime-comparisons: 60/61] libtracker-data: Allow ^^ casts on parameters
- Date: Sat, 8 May 2021 10:40:37 +0000 (UTC)
commit c637ae39d9f34464875523baa60643c4da000309
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Apr 12 01:23:16 2021 +0200
libtracker-data: Allow ^^ casts on parameters
Sometimes, it is necessary to do these casts to perform the correct
comparisons, e.g. with xsd:dateTime since we don't have a special
SQL binding type for dates. Allow these casts to happen in query
string land.
src/libtracker-data/tracker-sparql.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index 89e9f0b27..0582ae1fc 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -8995,11 +8995,11 @@ translate_RDFLiteral (TrackerSparql *sparql,
cast = _dup_last_string (sparql);
}
- if (is_parameter && (langtag || cast)) {
+ if (is_parameter && langtag) {
g_free (str);
g_free (langtag);
g_free (cast);
- _raise (PARSE, "Parameter cannot have LANGTAG/^^ modifiers", "RDFLiteral");
+ _raise (PARSE, "Parameter cannot have LANGTAG modifier", "RDFLiteral");
}
if (is_parameter) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]