Changeset: 0693877ab549 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0693877ab549 Modified Files: sql/backends/monet5/sql_scenario.c Branch: trails Log Message:
Make sure you can debug a partial correct SQL statement and not left behind in the blind what has happened in the optimizers until it reaches an error diffs (15 lines): diff --git a/sql/backends/monet5/sql_scenario.c b/sql/backends/monet5/sql_scenario.c --- a/sql/backends/monet5/sql_scenario.c +++ b/sql/backends/monet5/sql_scenario.c @@ -1311,6 +1311,11 @@ SQLparser(Client c) if (msg != MAL_SUCCEED) { str other = c->curprg->def->errors; + /* In debugging mode you may want to assess what went wrong in the optimizers*/ +#ifndef NDEBUG + if( m->emod & mod_debug) + runMALDebugger(c, c->curprg->def); +#endif c->curprg->def->errors = 0; MSresetInstructions(c->curprg->def, oldstop); freeVariables(c, c->curprg->def, NULL, oldvtop); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list