Changeset: c36f4127e674 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c36f4127e674
Modified Files:
        MonetDB5/src/mal/mal_interpreter.mx
Branch: Oct2010
Log Message:

Fix for crash in e.g. coalesce.sql test.
After an error, pc can be negative.  Check for that before using as index.


diffs (12 lines):

diff -r c9ae53d1e996 -r c36f4127e674 MonetDB5/src/mal/mal_interpreter.mx
--- a/MonetDB5/src/mal/mal_interpreter.mx       Fri Sep 10 17:11:02 2010 +0200
+++ b/MonetDB5/src/mal/mal_interpreter.mx       Mon Sep 13 17:39:41 2010 +0200
@@ -1254,7 +1254,7 @@
                        /* search the statement that assigns a value to the 
argument or target */
                        /* it should have been finished already */
                        for (l = i-1 ; l >= 0 && !blocked; l--)
-                       if ( fs[l].status != DFLOWwrapup){
+                       if ( fs[l].status != DFLOWwrapup && fs[l].pc >= 0){
                                q= getInstrPtr(flow->mb, fs[l].pc);
                                for ( k=0; k < q->retc && !blocked; k++)
                                if ( getArg(q,k) == getArg(p,j) )
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to