Update of /cvsroot/monetdb/pathfinder/compiler/include
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12708/include

Modified Files:
        sql.h sql_mnemonic.h 
Log Message:


-- instead of creating a seperate table for the values list resulting from 
guide-style path summaries,
   we include it into the corresponding from-clause
   with the following syntax 
     
    ... FROM (VALUES (1), ..., (n)) as tab(guide) ... 

   For this purpose we introduce a new alias_def-operator  for aliases with 
annotated column list.
 


Index: sql.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/sql.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- sql.h       6 Dec 2007 08:42:37 -0000       1.39
+++ sql.h       11 Dec 2007 13:15:14 -0000      1.40
@@ -113,6 +113,7 @@
     , sql_ref_tbl_name      /* a reference to an external relation */
     , sql_ref_column_name   /* a reference to a column of an ext. relation */
     , sql_alias             /* SQL alias (a table reference) */
+    , sql_alias_def         /* SQL alias with columnlist */
     , sql_column_list       /* an item of a list of column names */
     , sql_column_name       /* SQL column name (a column reference) */
     , sql_star              /* a SQL wildcard '*' */
@@ -424,6 +425,13 @@
  * Construct a SQL tree node representing a definition of a relation.
  */
 PFsql_t * PFsql_table_def (PFsql_tident_t name, PFsql_t *columnlist);
+
+/**
+ * Construct a SQL tree node representing a definition of an alias name
+ * with columnlist.
+ */
+PFsql_t * PFsql_alias_def (PFsql_aident_t name, PFsql_t *columnlist);
+
 /**
  * Collate a schema and a table_name, to identify a table in a database.
  */

Index: sql_mnemonic.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/sql_mnemonic.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- sql_mnemonic.h      6 Dec 2007 08:42:38 -0000       1.31
+++ sql_mnemonic.h      11 Dec 2007 13:15:15 -0000      1.32
@@ -46,6 +46,7 @@
 #define table_name(n)                PFsql_table_name(n)
 #define ref_table_name(n)            PFsql_ref_table_name(n)
 #define table_def(n,clmnlist)        PFsql_table_def(n,clmnlist)
+#define alias_def(n,clmnlist)        PFsql_alias_def(n,clmnlist)
 #define alias(i)                     PFsql_alias(i)
 
 /* .......... Columns .......... */


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to