Changeset: 1c8970e4c5cf for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1c8970e4c5cf
Modified Files:
        sql/backends/monet5/sql_gencode.c
Branch: sciql
Log Message:

add a safety check.

if the relational tree is empty, nothing to do


diffs (13 lines):

diff --git a/sql/backends/monet5/sql_gencode.c 
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -2196,6 +2196,9 @@ setCommitProperty(MalBlkPtr mb)
 static void
 add_materialise_stmt(MalBlkPtr mb, sql_rel *rel, list *processed)
 {
+       if (!rel)
+               return;
+
        switch(rel->op) {
        case op_basetable:
                {
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to