Jeroen T. Vermeulen wrote:
> Your transactor object is copied, and it is the *copy* that actually runs.
>  If you want to store data somewhere permanent once your transaction has
> succeeded, overload the on_commit() member function.  This will be invoked
> upon completion, on the copy that succeeded.

Bingo, thanks! It works now.

Funny that the remaining copy had a non-null pointer in it, though I 
initialized the pointer to NULL in the transactor constructor. (That's 
why I thought it was actively overwritten.)

-- 
Curran Schiefelbein

MIT Lincoln Laboratory
Group 901 / Biodefense Systems
781-981-0230
_______________________________________________
Libpqxx-general mailing list
Libpqxx-general@gborg.postgresql.org
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to