Update of /cvsroot/monetdb/pathfinder/compiler/include
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15393
Modified Files:
sql.h
Log Message:
-- print guide_step as SQL
Index: sql.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/sql.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- sql.h 17 Jul 2007 11:45:30 -0000 1.20
+++ sql.h 25 Jul 2007 20:15:44 -0000 1.21
@@ -190,7 +190,9 @@
sql_avg = 72,
sql_case = 73,
sql_when = 74,
- sql_else = 75
+ sql_else = 75,
+ sql_in = 76,
+ sql_lit_list = 77
};
typedef enum PFsql_kind_t PFsql_kind_t;
@@ -1030,6 +1032,23 @@
* Construct a boolean `or' operator.
*/
PFsql_t *PFsql_or (const PFsql_t * a, const PFsql_t * b);
+
+
+/**
+ * A sequence of in_list-expressions.
+ */
+#define PFsql_lit_list(...) \
+ PFsql_lit_list_(sizeof((PFsql_t *[]) {__VA_ARGS__} \
+ ) / \
+ sizeof(PFsql_t*), (const PFsql_t *[]) \
+ {__VA_ARGS__} \
+ )
+
+PFsql_t *PFsql_lit_list_ (unsigned int count, const PFsql_t ** list);
+/**
+ * Construct a in operator
+ */
+PFsql_t *PFsql_in (const PFsql_t * column, const PFsql_t * list);
#endif /* __SQL_H__ */
/* vim:set shiftwidth=4 expandtab: */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins