[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 72/116] libtracker-miner: Use '; ' as separator for multiple update statements



commit dbe330873b228a186b750fd6b72ac240575d67bc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Aug 29 14:05:38 2018 +0200

    libtracker-miner: Use ';' as separator for multiple update statements
    
    Let's stick to SPARQL1.1 correct syntax.

 src/libtracker-miner/tracker-miner-fs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index df6150a23..2b25d3817 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1483,7 +1483,7 @@ item_remove (TrackerMinerFS *fs,
 
        if (sparql && sparql[0] != '\0') {
                g_string_append (task_sparql, sparql);
-               g_string_append_c (task_sparql, '\n');
+               g_string_append (task_sparql, ";\n");
        }
 
        g_free (sparql);
@@ -1579,7 +1579,7 @@ item_move (TrackerMinerFS *fs,
        if (sparql && sparql[0] != '\0') {
                /* This is treated as a task on dest_file */
                g_string_append (dest_task_sparql, sparql);
-               g_string_append_c (dest_task_sparql, '\n');
+               g_string_append (dest_task_sparql, ";\n");
        }
 
        g_free (sparql);


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