Thanks Mike!
Your last suggestion was the best (ans easiest) solution, I guess I
just needed someone to point that out to me ;-) Since I want the whole
transaction to either succeed or fail, there's no need to use
SAVEPOINTs.
Cheers, Simon
On 3 Jul., 19:55, Michael Bayer [EMAIL PROTECTED]
On Jul 3, 2008, at 1:09 PM, Simon wrote:
Hi all,
I have a transactional session which save()s multiple objects to
multiple tables where each object potentially violates a unique
primary key or just a unique key constraint. At flush() time, MySQL
returns an IntegrityError which specifies