Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all articles
Browse latest Browse all 997

Re: How to update and then delete a record inside of a transaction

$
0
0

I already answered this on the devzone forum:

 

How to update and then delete a record inside of a transaction - ADS Forum

 

Here is how I understand what's going on:

 

  1. The UPDATE statement on the detail table inside the transaction starts an implicit lock on the detail table.
  2. The DELETE on the master table causes the RI rule to kick in.
  3. The RI rule can't acquire a lock on the detail table due to the (implicit) lock from step 1.

Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>