Hey Koen
You're right. As you observed, we've added a new feature to
> transaction handling (a hint from Bart Vanhauwaert): to auto-commit
> transactions when the transaction object destructs if the destruction
> is not a consequence of an exception being thrown (I was unaware that
> C++ actually has a function for detecting that:
> std::uncaught_exception()).
>
I think that more correct way to detecting that is to use
transaction status, returned by the backend. In case of
Postgres (libpq) its a function PQtransactionStatus().
>
> The upshot is: you no longer are required to explicitly commit() all
> your transactions -- this is now the "default" behavior.
>
Really good idea.
--
// Dmitriy.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest