On 15 September 2012 10:04, Krzysztof BieleÅ„ <[email protected]> wrote:
> Hi,
>
> while using soci 3.1.0 I've crashed at line 4 of souch code:
>
> 1   soci::session sql(connectionPool);
> 2   sql.reconnect();
> 3
> 4   soci::transaction tr(sql);
>
> It seems that program crushes when using transactions on reconnected
> sessions from connection pool. The cause of such behavior is that after
> connection pool session reconnects there is no reinitialization of field
> session::backEnd_.
>
> I've check current master branch and it seems that there too may be the
> same problem. Please check simple patch in attachement.

Krzysztof,

I'm sorry your post has waited such a long time for response.
I added your patch to similar fix here:

https://github.com/SOCI/soci/pull/5

It should be fixed in the upcoming SOCI 3.2.0

Thanks very much!

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to