From: <leg...@at...> - 2004-06-30 02:55:46
|
The following comment has been added to this issue: Author: Vladimir Goncharov Created: Tue, 29 Jun 2004 10:13 PM Body: Actually, it is better not to check rowcount at all or to have some global property to skip checking the row count. We need to delete all the records and then insert regardless of what the current db state is. Currently I need to extend the EntityPersister to eat the exception, but it is not a clean solution. --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/hibernate/browse/HB-139?page=comments#action_13545 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HB-139 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-139 Summary: Relax rowcount to be > instead of equal to account for triggers. Type: Improvement Status: Closed Priority: Major Resolution: WON'T FIX Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate2 Components: core Versions: 2.0 final Assignee: Gavin King Reporter: Don Eddleman Created: Tue, 17 Jun 2003 10:15 AM Updated: Tue, 29 Jun 2004 10:13 PM Environment: All OSs, SQLServer and more than likely any other DB that supports triggers. Description: Within the NonBatchingBatcher class the check for row count to determine success should be relaxed to rowCount >= expected so that any triggers defined on tables affected by the insert/update will not cause a txn to fail just because they fired. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |