[Monetdb-developers] mapi: how to check mil query on errors?

Arjan Scherpenisse A.C.Scherpenisse at cwi.nl
Thu Aug 19 16:25:20 CEST 2004


For SQL code, I check now with:

hdl = mapi_query(mid, "very wrong query.");
while( mapi_next_result(hdl) ) {
	if (mapi_result_error(hdl)) {
		// error handling here


how to do this equivalent for mil queries? Or dont we need mil queries 
anymore?

My personal opinion is to keep doing it the old way for mil-type queries 
(if (mapi_error()) etc), but that does not seem to work...

-- 
Arjan Scherpenisse

Centrum voor Wiskunde en Informatica,
Amsterdam, the Netherlands




More information about the developers-list mailing list