Changeset: 99af88b1730e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=99af88b1730e
Modified Files:
monetdb5/mal/mal_interpreter.c
Branch: Feb2013
Log Message:
Return more information upon error
diffs (30 lines):
diff --git a/monetdb5/mal/mal_interpreter.c b/monetdb5/mal/mal_interpreter.c
--- a/monetdb5/mal/mal_interpreter.c
+++ b/monetdb5/mal/mal_interpreter.c
@@ -785,20 +785,22 @@ str runMALsequence(Client cntxt, MalBlkP
}
stkpc = mb->stop;
continue;
- default:
+ default: {
+ str w;
if (pci->token < 0) {
/* temporary NOOP instruction */
break;
}
- ret = createScriptException(mb, stkpc, MAL,
- NULL, "unkown operation");
+ w= instruction2str(mb, 0, pci, FALSE);
+ ret = createScriptException(mb, stkpc, MAL,
NULL, "unkown operation:%s",w);
+ GDKfree(w);
if (cntxt->qtimeout && time(NULL) -
stk->clock.tv_usec > cntxt->qtimeout){
ret= createException(MAL,
"mal.interpreter", RUNTIME_QRY_TIMEOUT);
break;
}
stkpc= mb->stop;
continue;
- }
+ } }
/* monitoring information should reflect the input
arguments,
which may be removed by garbage collection */
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list