Ok, I see. The new code wraps PK generator in the main transaction, so I can see how managing auto-commit property manually in your custom generator can get you in trouble. One possible workaround may be using a separate connection ... which DataNode makes really hard by returning a wrapper inner class when in transaction. So you may need to unbind the transaction from the thread, call DataNode.getDataSource(), then rebind transaction back.

Andrus


On Jun 30, 2006, at 3:38 PM, Gentry, Michael ((Contractor)) wrote:

Judging by the release notes at:

http://www.objectstyle.org/confluence/display/CAY/2006/03/23/Cayenne +ORM
+1.2M12+Release

I'd guess the nested DataContexts are a likely place to look?

Of course, that brings up the question: is this a bug that should be
fixed or should I just update my PK generator to store the auto-commit
flag, set it true for my usage, then set it back to the original value?
Also, do you think this would effect running stored procedures through
Cayenne instead of JDBC directly, too?

Thanks,

/dev/mrg


-----Original Message-----
From: Andrus Adamchik [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 10:33 AM
To: [email protected]
Subject: Re: Sybase adapter changes?


IIRC transaction API changes also happened around M12.

Andrus

On Jun 30, 2006, at 3:19 PM, Gentry, Michael ((Contractor)) wrote:

M9: Pass (auto-commit = true)
M10: Pass (auto-commit = true)
M11: Pass (auto-commit = true)
M12: Fail (auto-commit = false)
RC1: Fail (auto-commit = false)

Well, at least that provides a good starting point.  :-)

/dev/mrg


Reply via email to