-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Database Level Cascade Delete causes delete to fail
PostPosted: Mon May 09, 2005 6:39 pm 
Regular
Regular

Joined: Tue Sep 09, 2003 9:37 pm
Posts: 56
Location: Ogden, Utah, USA
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b] 2.1

[b]Full stack trace of any exception that occurs:[/b]
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) when committing a delete

[b]Name and version of the database you are using:[/b] MSSQL 2000,
I-Net Opta driver

[b]The generated SQL (show_sql=true):[/b]
2005-05-09 16:23:27,562 [main] DEBUG net.sf.hibernate.SQL - delete from RP_Voc_Rehab where voc_rehab_id=? and modified_ts=?


We do not have this issue with other databases (DB2 UDB7.2) but with MSSQL and the I-Net opta driver, the delete on a cascade doesn't return "1" for one row deleted (instead it returns the result from the last delete query caused by cascade that was issued).

This causes hibernate to recognize a failure (because exactly one row should have been deleted.) This appears to be a driver failure - can anyone confirm that?

Thanks,
Jenica Humphreys
MountainView Software


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.