Update of /cvsroot/monetdb/pathfinder/compiler/sql
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8340
Modified Files:
sql.c
Log Message:
-- print guide_step as SQL
Index: sql.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/sql/sql.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- sql.c 28 Jun 2007 08:32:19 -0000 1.26
+++ sql.c 25 Jul 2007 12:29:19 -0000 1.27
@@ -280,7 +280,7 @@
* for you, so you will only have to pass a list of arguments to
* that (variable argument list) macro.
*
- * @param count Number of expressions in the array that follows.
+ e @param count Number of expressions in the array that follows.
* @param list Array of exactly @a count expression nodes.
* @return A chain of expression nodes.
*/
@@ -999,8 +999,10 @@
return "value";
case sql_col_name:
return "name";
- case sql_col_dpre:
- return "deltapre";
+ case sql_col_dpre:
+ return "deltapre";
+ case sql_col_guide:
+ return "guide";
default:
PFoops (OOPS_FATAL, "unknown special flag set");
}
@@ -1418,4 +1420,31 @@
return wire2 (sql_or, a, b);
}
+PFsql_t *
+PFsql_lit_list_ (unsigned int count, const PFsql_t ** list)
+{
+ assert (count > 0);
+
+ if (list[0] == NULL)
+ return PFsql_lit_list_ (count - 1, list + 1);
+ else if (count == 1)
+ return (PFsql_t *) list[0];
+ else
+ return wire2 (sql_lit_list,
+ PFsql_lit_list_ (count - 1, list + 1), list[0]);
+ return NULL; /* satisfy picky compilers */
+}
+
+
+/**
+ * Create a SQL tree node representing the in operator
+ */
+PFsql_t *
+PFsql_in (const PFsql_t * column, const PFsql_t * list)
+{
+ return wire2 (sql_in, column, list);
+}
+
/* 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