Re: [libdbi-users] Timeout / Reconnect

2010-07-15 Thread Markus Hoenicka
Vikram Ambrose writes: There is indeed enough information to find this scenario. Here is a very simple callback I use at the moment: void DB_error_callback(dbi_conn conn, void *udata){ int rv; const char *errormsg = NULL; rv = dbi_conn_error(DB_conn,errormsg);

Re: [libdbi-users] Timeout / Reconnect

2010-07-01 Thread Markus Hoenicka
Vikram Ambrose noel.ambr...@gmail.com was heard to say: Is there a way of having the mysql driver, reconnect and then complete the query without erroring out, in the case of driver/server timeout? This way I do not lose my query to a timeout or need to have some sort of global command buffer

Re: [libdbi-users] Timeout / Reconnect

2010-07-01 Thread Vikram Ambrose
On 07/01/2010 03:12 AM, Markus Hoenicka wrote: Vikram Ambrose noel.ambr...@gmail.com was heard to say: Is there a way of having the mysql driver, reconnect and then complete the query without erroring out, in the case of driver/server timeout? This way I do not lose my query to a timeout or