Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16745
Modified Files:
Tag: Aug2009
sql_gencode.mx
Log Message:
avoid crash when we run out of stack space, this is not a good solution, but it
works good enough for now
U sql_gencode.mx
Index: sql_gencode.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_gencode.mx,v
retrieving revision 1.332.2.3
retrieving revision 1.332.2.4
diff -u -d -r1.332.2.3 -r1.332.2.4
--- sql_gencode.mx 8 Oct 2009 09:32:08 -0000 1.332.2.3
+++ sql_gencode.mx 8 Oct 2009 10:47:55 -0000 1.332.2.4
@@ -423,6 +423,13 @@
InstrPtr q = NULL;
node *n;
+ if (THRhighwater()) {
+ /* FIXME: this needs a proper solution, but at least this avoids
+ * crashing, which is just a wee bit better */
+ showException(SQL, "sql", "too many nested operators");
+ return(0);
+ }
+
if (s) {
if (s->nr > 0)
return s->nr; /* stmt already handled */
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins