Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv32313
Modified Files:
sql.mx
Log Message:
Protect against non-initialized slave tables.
Index: sql.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql.mx,v
retrieving revision 1.366
retrieving revision 1.367
diff -u -d -r1.366 -r1.367
--- sql.mx 5 Nov 2009 08:45:45 -0000 1.366
+++ sql.mx 5 Nov 2009 20:29:53 -0000 1.367
@@ -3984,6 +3984,9 @@
if (msg)
return msg;
t= SLAVEtable();
+ if ( t == NULL || BATcount(t) == 0)
+ throw(ILLARG, "sql.slavelog","tables not initialized");
+
*r = t->batCacheid;
BBPkeepref(*r);
return MAL_SUCCEED;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins