[Libpqxx-general] Transaction status

Maxime van Noppen maxime at altribe.org
Thu Jul 9 12:03:27 UTC 2009


Hello,

I'm in a situation where I would like to know the status of the
transaction (aborted, connected, ...). To be more accurate, I'd like a
status() function returning the m_Status variable of the transaction.

This has two purposes :

 - to be able to anticipate usage_error (like committing an aborted
transaction or so);
 - help writing recovery code

Is there a reason why I shouldn't want this ?


Thanks !

-- 
Maxime


More information about the Libpqxx-general mailing list