From: <to...@tu...> - 2016-09-02 11:11:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Sep 02, 2016 at 01:36:36PM +0300, Georgios Petasis wrote: > On 2/9/2016 12:51, to...@tu... wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Fri, Sep 02, 2016 at 12:20:27PM +0300, Georgios Petasis wrote: > >> Hi all, > >> > >> I want to use a mysql database from multiple threads [...] > > Sorry, not really specific to tdbc, but from what I know about other > > similar interfaces: the database connection has a state [...] > Since I have a new connection per thread, I was expecting that begin > transaction/commit will be particular to each thread. However, they seem > to interfere, and mysql client gets confused. Or I am using tdbc::mysql > the wrong way. Ah, ok. Then, most of what i've written is moot :-) Given what you write, it might be some part of tdbc (perhaps the *dbc library?) isn't thread safe? A (admittedly superficial) net search didn't turn up relevant stuff for me, though. Regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlfJXmcACgkQBcgs9XrR2kb2jQCfcgRoIXuBeGeCLZ4uWKVBGHx8 VO4AmwfSij3wVaCavMyFacdiM6qHZGhU =tMoH -----END PGP SIGNATURE----- |