If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Smart Rollback occurred

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-11, 04:22
adodb21 adodb21 is offline
Registered User
 
Join Date: May 2011
Posts: 12
Smart Rollback occurred

Query:

UPDATE seg_encounter_location_rate SET ward_nr='1', room_nr='15', bed_nr='1', rate='0.0000' WHERE encounter_nr='2009023671' AND loc_enc_nr='411265'

I've got an error:
No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table.

What do you mean by Smart Rollback occurred?
How can I resolve my error?
Reply With Quote
  #2 (permalink)  
Old 05-13-11, 04:50
tonkuma tonkuma is online now
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
I don't know what do you mean by "Smart Rollback".

By the way, the error(?) said that No row was found which satisfy the WHERE condition encounter_nr='2009023671' AND loc_enc_nr='411265'.

So, it would be a warning, not an error.
Reply With Quote
  #3 (permalink)  
Old 05-16-11, 01:09
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Maybe "Smart Rollback" just means the fact that all changes that the SQL statement would have made are undone in case the SQL statement fails (but not with a warning as is the case here). However, that's not a "rollback" but rather a way to guarantee that each statement is atomically executed.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On