Changeset: bdfc23a47d73 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bdfc23a47d73
Modified Files:
sql/backends/monet5/rel_bin.c
Branch: Aug2018
Log Message:
Check for stack space.
This should mitigate bug 6664 by giving an error instead of a crash.
diffs (13 lines):
diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -356,6 +356,9 @@ exp_bin(backend *be, sql_exp *e, stmt *l
mvc *sql = be->mvc;
stmt *s = NULL;
+ if (THRhighwater())
+ return sql_error(be->mvc, 10, SQLSTATE(42000) "query too
complex: running out of stack space");
+
if (!e) {
assert(0);
return NULL;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list