On 08/19/2010 10:43 AM, Emmanuel Courreges wrote: > I successfully use libdbi in production with MySQL and Postgres servers > in multithreading, but by multithreading I mean that I am using one > connection per thread, and a variable pool of threads, with connections > to MySQL and Postgres on the same libdbi instance. A server going down > does not cause any issue. > > However, you might be encountering an issue with the dbi_conn_error, > which last time I checked was not thread safe, because it is sharing a > static char * between all connections! I guess I should have filed a bug.
Hi, I notice now that my dbi_conn_error() is also protected with the same scoped mutex as dbi_conn_query(). I use the same connection in several threads without this causing any problems (apart from having to use the mutex). -- --Kjell ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Libdbi-drivers-devel mailing list Libdbi-drivers-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel