On 23-12-2010 03:04:37 -0500, Brett Spurrier wrote:
No, I don't get any distinguishable messages from the server. However, I am using merovingian, so everything is in the background. The merovingian log file however, is empty.
I guess you mean it doesn't show anything special for you. This log should always contain some chattering about when connections are being made and more.
Any other thoughts? At a loss here.
You may hit a stack limit, and get disconnected without warning. How does INSERT_INTO_STATEMENT look like?
MapiHdl query(Mapi dbh, char *q) { MapiHdl ret = NULL; if ((ret = mapi_query(dbh, q)) == NULL || mapi_error(dbh) != MOK) die(dbh, ret); return(ret); }
void update(Mapi dbh, char *q) { MapiHdl ret = query(dbh, q); if (mapi_close_handle(ret) != MOK) die(dbh, ret); }
void main() { dbh = mapi_connect("localhost", 50000, "monetdb", "monetdb", "sql", "dbname"); if (mapi_error(dbh)) { die(dbh, hdl); }
for (int i=0; i< 2500; i++) { char *p = INSERT_INTO_STATEMENT; update(dbh, p); }
}
Does anyone see any reason that the MAPI would choke mid way through the For loop?
Any help would be majorly appreciated. I am at a loss.