Update of /cvsroot/monetdb/pathfinder/compiler/xmlimport
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21843/compiler/xmlimport

Modified Files:
        xml2lalg_converters.c 
Log Message:
-- Fixed a bug in the XML importer.

Index: xml2lalg_converters.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/xmlimport/xml2lalg_converters.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- xml2lalg_converters.c       11 Jan 2008 10:47:18 -0000      1.6
+++ xml2lalg_converters.c       14 Jan 2008 13:53:43 -0000      1.7
@@ -118,7 +118,19 @@
 bool 
 PFxml2la_conv_2PFLA_atomValue_bln(char* s)
 {
-    return atoi(s);
+   
+    if(strcmp(s, "true") == 0)
+    {
+        return true;
+    } 
+    else if(strcmp(s, "false") == 0)
+    {
+        return false;
+    } 
+    else 
+    {
+        PFoops (OOPS_FATAL, "don't know what to do with (%s)", s);
+    }
 }
 
 
@@ -790,7 +802,6 @@
     case aat_bln:    
         {
             return lit_bln(PFxml2la_conv_2PFLA_atomValue_bln(valueString));
-            
         }
     case aat_uA:      
         {


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to