Update of /cvsroot/monetdb/sql/src/storage/restrict
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv12431/src/storage/restrict

Modified Files:
        restrict_storage.mx 
Log Message:
added support for 'create cluster name on tname ( column list )'
which caused lots of changes all over the place.

also fixed (moved code out of sql -> mkey)
moved finally copy into over to a function and into relational alg.



U restrict_storage.mx
Index: restrict_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/restrict/restrict_storage.mx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- restrict_storage.mx 30 Apr 2009 20:52:08 -0000      1.15
+++ restrict_storage.mx 25 Jul 2009 22:08:38 -0000      1.16
@@ -290,6 +290,16 @@
        return b->cnt;
 }
 
+static int
+sorted_col(sql_trans *tr, sql_column *col)
+{
+       BAT *b = bind_col(tr, col, RDONLY);
+       int sorted = BATtordered(b);
+       
+       bat_destroy(b);
+       return sorted;
+}
+
 static int 
 load_bat( sql_bat *bat) 
 {
@@ -963,6 +973,7 @@
 
        sf->count_col = (count_col_fptr)&count_col;
        sf->count_idx = (count_idx_fptr)&count_idx;
+       sf->sorted_col = (sorted_col_fptr)&sorted_col;
 
        sf->create_col = (create_col_fptr)&create_col;
        sf->create_idx = (create_idx_fptr)&create_idx;


------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to