Mika Raento wrote:
>
> It was simpler than I thought. Since you should never create your own
> NdbTransactions with new, there's no reason to expose the real
> desctructor either. So it suffices to add
>
> %newobject startTransaction;
>
> to Ndb.i and
>
> %extend NdbTransaction {
> public:
> ~NdbTransaction() {
> self->close();
> }
> };
>
> to NdbTransaction.i (while removing the original ~NdbTransaction from it).
>
sweet! I'll pop that in and play with it in just a few seconds.
--
Monty Taylor
Senior Consultant
MySQL Inc., www.mysql.com
Get More with MySQL! www.mysql.com/consulting