Update of /cvsroot/monetdb/MonetDB4/src/monet
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28948

Modified Files:
      Tag: GDK-2
        monet_interpreter.mx 
Log Message:
Fix for [int](b.mirror()) where b is oid-headed and oid and int have
the same size (or [lng](b.mirror()) when sizeof(oid)==sizeof(lng)).
The problem was that in a mirrored bat the head and tail structures
are shared and the cast merely overwrote the shared type info for the
tail which then affected the head.


Index: monet_interpreter.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/monet/monet_interpreter.mx,v
retrieving revision 1.10.4.3
retrieving revision 1.10.4.4
diff -u -d -r1.10.4.3 -r1.10.4.4
--- monet_interpreter.mx        13 Aug 2007 21:42:17 -0000      1.10.4.3
+++ monet_interpreter.mx        15 Aug 2007 13:05:54 -0000      1.10.4.4
@@ -1424,7 +1424,7 @@
 
        (void) argc;
 
-       if (trivial_cast(tpe, b->ttype)) {
+       if (trivial_cast(tpe, b->ttype) && !isVIEW(b)) {
                /* trivial conversion, e.g. int => int */
                int dense_bak = b->T->dense;
 


-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to