Not an Issue
Details
Details
Assignee
Unassigned
UnassignedReporter
Tim Hughes
Tim HughesComponents
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created January 31, 2007 at 8:35 AM
Updated January 31, 2007 at 8:55 AM
Resolved January 31, 2007 at 8:46 AM
I have a table in an MS SQL 2005 database that has an update trigger. When I try issuing ISession.Flush(), or ITransaction.Commit, I get a TooManyRowsAffectedException exception thrown in the AbstractEntityPersister.Update() method. The row-count returned by MS SQL is 2, not 1, because of the update trigger. I tracked the source of the TooManyRowsAffectedException exception to the fact that ExecuteUpdateResultCheckStyle.DetermineDefault() returns ExecuteUpdateResultCheckStyle.Count. As a work-around, I changed ExecuteUpdateResultCheckStyle.DetermineDefault() to return ExecuteUpdateResultCheckStyle.None. Is there another way to resolve this issue?