[tracker] rasqal: Fix anonymous blank nodes in SPARQL INSERT templates



commit 32a8d6512c0ff5f32a5399729a3e792dbf7652b1
Author: Jürg Billeter <j bitron ch>
Date:   Tue Feb 17 19:31:39 2009 +0100

    rasqal: Fix anonymous blank nodes in SPARQL INSERT templates
---
 src/rasqal/sparql_parser.y |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/rasqal/sparql_parser.y b/src/rasqal/sparql_parser.y
index c78b181..15e5b53 100644
--- a/src/rasqal/sparql_parser.y
+++ b/src/rasqal/sparql_parser.y
@@ -1808,14 +1808,6 @@ ObjectList: Object ObjectTail
     YYERROR_MSG("ObjectList: cannot create triple");
   }
 
-  if(raptor_sequence_push(formula->triples, triple)) {
-    rasqal_free_formula(formula);
-    rasqal_free_formula($1);
-    if($2)
-      rasqal_free_formula($2);
-    YYERROR_MSG("ObjectList: sequence push failed");
-  }
-
   $$=rasqal_formula_join(formula, $1);
   if(!$$) {
     if($2)
@@ -1827,6 +1819,14 @@ ObjectList: Object ObjectTail
   if(!$$)
     YYERROR_MSG("ObjectList: formula join $2 failed");
 
+  if(raptor_sequence_push(formula->triples, triple)) {
+    rasqal_free_formula(formula);
+    rasqal_free_formula($1);
+    if($2)
+      rasqal_free_formula($2);
+    YYERROR_MSG("ObjectList: sequence push failed");
+  }
+
 #if RASQAL_DEBUG > 1  
   fprintf(DEBUG_FH, "  objectList is now ");
   if($$)



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