Update of /cvsroot/monetdb/pathfinder/compiler/include
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19379/compiler/include
Modified Files:
sql.h sql_mnemonic.h
Log Message:
-- Introduced SQL code generation for la_ref_tbl and la_serialize_rel (The two
new recently introduced logical algebra ops).
Index: sql.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/sql.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- sql.h 26 Nov 2007 09:12:31 -0000 1.37
+++ sql.h 27 Nov 2007 21:26:44 -0000 1.38
@@ -110,6 +110,8 @@
, sql_tbl_def /* a table name definition */
, sql_schema_tbl_name /* a database table reference (schema+tablename) */
, sql_tbl_name /* a table name reference */
+ , 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_column_list /* an item of a list of column names */
, sql_column_name /* SQL column name (a column reference) */
@@ -230,6 +232,15 @@
struct {
PFsql_tident_t name; /**< Table name. */
} tbl;
+
+ struct {
+ char* name; /**< name of an external relation. */
+ } ref_tbl;
+
+ struct {
+ PFsql_aident_t alias; /**< Alias name. */
+ char* name; /**< name of a column of an ext. relation. */
+ } ref_column_name;
struct {
bool distinct; /**< Boolean indicating if elimination
@@ -420,6 +431,19 @@
* Construct a SQL tree node representing a reference to a relation.
*/
PFsql_t * PFsql_table_name (PFsql_tident_t name);
+
+/**
+ * Construct a SQL tree node representing a reference to a
+ * column of an external relation.
+ */
+PFsql_t * PFsql_ref_column_name (PFsql_aident_t alias, char* name);
+
+/**
+ * Construct a SQL tree node representing a reference to an
+ * external relation.
+ */
+PFsql_t * PFsql_ref_table_name (char* name);
+
/**
* Construct a SQL tree node representing a SQL `correlation name'.
*/
Index: sql_mnemonic.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/sql_mnemonic.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- sql_mnemonic.h 26 Nov 2007 09:12:31 -0000 1.29
+++ sql_mnemonic.h 27 Nov 2007 21:26:44 -0000 1.30
@@ -44,12 +44,14 @@
/* .......... Tables .......... */
#define schema_table_name(s,t) PFsql_schema_table_name(s,t)
#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(i) PFsql_alias(i)
/* .......... Columns .......... */
#define column_list(...) PFsql_column_list(__VA_ARGS__)
#define column_name(i) PFsql_column_name(PF_SQL_ALIAS_UNBOUND,i)
+#define ref_column_name(a,n)
PFsql_ref_column_name(PF_SQL_ALIAS_UNBOUND,n)
#define ext_column_name(a,i) PFsql_column_name(a,i)
#define star() PFsql_star()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins