Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31893
Modified Files:
mal_interpreter.mx
Log Message:
Check if the bat exists to avoid problems...
Index: mal_interpreter.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_interpreter.mx,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -d -r1.218 -r1.219
--- mal_interpreter.mx 11 Mar 2008 23:14:28 -0000 1.218
+++ mal_interpreter.mx 12 Mar 2008 10:46:08 -0000 1.219
@@ -1711,8 +1711,10 @@
if( stk->stk[getArg(pci,0)].vtype == TYPE_bat){
b = BATdescriptor(stk->stk[getArg(pci,0)].val.br.id);
- isview = isVIEW(b);
- BBPunfix(b->batCacheid);
+ if (b) {
+ isview = isVIEW(b);
+ BBPunfix(b->batCacheid);
+ }
}
for(; i<limit; i++) {
if (stk->stk[getArg(pci,i)].vtype == TYPE_bat){
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins