Changeset: 316f0fdad9ed for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=316f0fdad9ed
Modified Files:
        sql/backends/monet5/datacell/emitter.mx
Branch: default
Log Message:

Keep the link with the relation
to be able to inspect the basket before it is taken into
emission.


diffs (22 lines):

diff --git a/sql/backends/monet5/datacell/emitter.mx 
b/sql/backends/monet5/datacell/emitter.mx
--- a/sql/backends/monet5/datacell/emitter.mx
+++ b/sql/backends/monet5/datacell/emitter.mx
@@ -454,14 +454,11 @@
                BSKTlock(&em->lck, &em->name, &em->delay);
                for ( k =0 ; k < baskets[em->bskt].colcount; k++ ) {
                        if ( em->table.format[k].c[0] )
-                               BBPunfix( em->table.format[k].c[0]->batCacheid);
-                       b = em->table.format[k].c[0] =  
baskets[em->bskt].primary[k];
+                               BBPunfix( em->table.format[k].c[0]->batCacheid 
);
+                       b = baskets[em->bskt].primary[k];
+                       em->table.format[k].c[0] =  BATcopy(b, b->htype, 
b->ttype,TRUE);
                        em->table.format[k].ci[0] = bat_iterator(b);
-                       if (  b->htype == TYPE_oid) {
-                               baskets[em->bskt].primary[k] = 
BATnew(TYPE_void, b->ttype, 0);
-                               BATseqbase(baskets[em->bskt].primary[k], 0);
-                       } else
-                               baskets[em->bskt].primary[k] = BATnew(b->htype, 
b->ttype, 0);
+                       BATclear(b);
                }
                BSKTunlock(&em->lck, &em->name);
                if ((cnt = BATcount(em->table.format[1].c[0]))) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to