Update of /cvsroot/monetdb/sql/src/include
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv32487/src/include

Modified Files:
        sql_list.h sql_relation.h 
Log Message:
cleanup nil semantics and has nil code

always output projection (also with out relation)


U sql_list.h
Index: sql_list.h
===================================================================
RCS file: /cvsroot/monetdb/sql/src/include/sql_list.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- sql_list.h  7 Jan 2009 14:19:29 -0000       1.17
+++ sql_list.h  14 Sep 2009 18:20:28 -0000      1.18
@@ -42,6 +42,7 @@
 
 extern void list_destroy(list *l);
 extern int list_length(list *l);
+extern int list_empty(list *l);
 
 extern list *list_append(list *l, void *data);
 extern list *list_append_before(list *l, node *n, void *data);

U sql_relation.h
Index: sql_relation.h
===================================================================
RCS file: /cvsroot/monetdb/sql/src/include/sql_relation.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- sql_relation.h      9 Mar 2009 20:38:06 -0000       1.36
+++ sql_relation.h      14 Sep 2009 18:20:28 -0000      1.37
@@ -122,7 +122,7 @@
        (op == op_insert || op == op_update || op == op_delete)
 
 /* NO NIL semantics of aggr operations */
-#define has_no_nil(e) \
+#define need_no_nil(e) \
        ((e->flag&NO_NIL))
 #define set_no_nil(e) \
        e->flag |= NO_NIL
@@ -132,6 +132,8 @@
        ((e->flag&HAS_NO_NIL) == 0)
 #define set_has_no_nil(e) \
        e->flag |= HAS_NO_NIL
+#define set_has_nil(e) \
+       e->flag &= (~HAS_NO_NIL)
 
 #define is_ascending(e) \
        ((e->flag&ASCENDING))


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to