[Libpqxx-general] Liskov Substitution and Transactions

Jeroen Vermeulen jtv at xs4all.nl
Mon Apr 27 04:45:09 UTC 2009


Maurice Gittens wrote:

> When substituting a pqxx::subtransation* for a pqxx::basic_transaction* I
> need to cast them to pqxx::basic_transactions*.
> This is probably due to the fact that the subtransaction class has two base
> classes.
> This would seem to violate the premise that a pqxx::subtransaction ISA
> pqxx::basic_transaction.

Ahem.  I stupidly gave you the wrong class.  That should have been 
transaction_base!


> PS: http://www.pqxx.org/development/libpqxx/ seems to be down.

Whoops, indeed.  Fixed now.  Thanks for the warning.


Jeroen


More information about the Libpqxx-general mailing list