Update of /cvsroot/monetdb/pathfinder/compiler/debug
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5596/debug

Modified Files:
      Tag: Feb2009
        logdebug.c 
Log Message:
-- Logical Algebra Debug Printing:
   Check for the existence of lineage property before printing it.


U logdebug.c
Index: logdebug.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/debug/logdebug.c,v
retrieving revision 1.119.2.3
retrieving revision 1.119.2.4
diff -u -d -r1.119.2.3 -r1.119.2.4
--- logdebug.c  31 Jan 2009 22:21:31 -0000      1.119.2.3
+++ logdebug.c  9 Mar 2009 14:55:02 -0000       1.119.2.4
@@ -1274,18 +1274,19 @@
                     }
                 /* list columns and their corresponding lineage */
                 for (unsigned int i = 0; i < n->schema.count; i++)
-                    PFarray_printf (DOT, 
-                                    i
-                                    ? ", %s (%i.%s)"
-                                    : "\\nlineage: %s (%i.%s)",
-                                    PFcol_str (n->schema.items[i].name),
-                                    PFprop_lineage (
-                                        n->prop,
-                                        n->schema.items[i].name)->node_id,
-                                    PFcol_str (
-                                        PFprop_lineage_col (
+                    if (PFprop_lineage (n->prop, n->schema.items[i].name))
+                        PFarray_printf (DOT, 
+                                        i
+                                        ? ", %s (%i.%s)"
+                                        : "\\nlineage: %s (%i.%s)",
+                                        PFcol_str (n->schema.items[i].name),
+                                        PFprop_lineage (
                                             n->prop,
-                                            n->schema.items[i].name)));
+                                            n->schema.items[i].name)->node_id,
+                                        PFcol_str (
+                                            PFprop_lineage_col (
+                                                n->prop,
+                                                n->schema.items[i].name)));
             }
             if (*fmt == '+' || *fmt == 'F') {
                 unsigned int fd_count = 0;


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to