-->
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: expected affected row count: 1, actual affected row count: 0
PostPosted: Thu Feb 23, 2006 6:10 am 
Beginner
Beginner

Joined: Mon Oct 17, 2005 1:58 am
Posts: 27
I have three tables A,B,C.
A has one to many relationship with C
B has one to many relationship with C

Now I have six objects as follows

ObjA1 ---> of type A

ObjA2 ---> of typeA

ObjB1---> of type B

ObjB2-> of type B

ObjC1--> Of type C & Having link to ObjA1 and ObjB1

ObjC2-> Of type C & Having link to ObjA2and ObjB2


First I save all these objects one by one

Next I update ObjA2

Then I delete ObJC1,ObjC2,ObjB1,ObjB2 in that order.

But when i try to delete ObjA1 it gives the following exception

SQL insert, update or delete failed (expected affected row count: 1, actual affected row count: 0). Possible causes: the row was modified or deleted by another user, or a trigger is reporting misleading row count.

I have no triggers in database

What could be the problem ?How to solve it?

Thanks,

Sandipan


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.