[tracker] libtracker-sparql: Remove comment



commit a53e034f2f404db9c323ee2e368a149943f54cfc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 28 22:46:54 2016 +0100

    libtracker-sparql: Remove comment
    
    It doesn't really apply. The DELETE DATA { pattern } query requires
    the exact given triples, and won't work on variables. As it's not
    nice or possible to query the current values just to perform a better
    looking DELETE DATA {} query, just stick to the DELETE {} WHERE {}
    one, and don't insinuate that we have a better option.

 src/libtracker-sparql/tracker-resource.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-resource.c b/src/libtracker-sparql/tracker-resource.c
index 0e94ad9..f97f4be 100644
--- a/src/libtracker-sparql/tracker-resource.c
+++ b/src/libtracker-sparql/tracker-resource.c
@@ -1327,13 +1327,6 @@ generate_sparql_deletes (TrackerResource    *resource,
 {
        TrackerResourcePrivate *priv = GET_PRIVATE (resource);
 
-       /* We have to generate a rather awkward query here, like:
-        *
-        *     DELETE { pattern } WHERE { pattern }
-        *
-        * It would be better if we could use "DELETE DATA { pattern }". This is
-        * allowed in SPARQL update 1.1, but not yet supported by Tracker's store.
-        */
        if (! is_blank_node (priv->identifier)) {
                if (g_hash_table_size (priv->overwrite) > 0) {
                        g_string_append (data->string, "DELETE {\n");


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