Issue Details (XML | Word | Printable)

Key: DERBY-678
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jean T. Anderson
Reporter: Mike Matrigali
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Derby

derby documentation does not reflect changes to update lock behavior

Created: 04/Nov/05 02:56 AM   Updated: 26/Apr/06 06:04 AM
Return to search
Component/s: Documentation
Affects Version/s: 10.0.2.0
Fix Version/s: 10.1.3.1

Time Tracking:
Not Specified

File Attachments:
  Size
HTML File Licensed for inclusion in ASF works cdevconcepts842385.html 2006-01-26 07:35 AM Eric Radzinski 3 kB
File Licensed for inclusion in ASF works derby678.diff 2006-01-26 07:35 AM Eric Radzinski 2 kB

Resolution Date: 26/Apr/06 06:04 AM


 Description  « Hide
The following section in the developers guide on update locks needs to be changed from:
When a user-defined update cursor (created with the FOR UPDATE clause) reads data, its transaction obtains an update lock on the data. If the user-defined update cursor updates the data, the update lock is converted to an exclusive lock. If the cursor does not update the row, when the transaction steps through to the next row, transactions using the TRANSACTION_READ_COMMITTED isolation level release the lock, and transactions using the TRANSACTION_SERIALIZABLE or TRANSACTION_REPEATABLE_READ isolation level downgrade it to a shared lock until the transaction is committed. (For update locks, the TRANSACTION_READ_UNCOMMITTED isolation level acts the same way as TRANSACTION_READ_COMMITTED.)

to:
When a user-defined update cursor (created with the FOR UPDATE clause) reads data, its transaction obtains an update lock on the data. If the user-defined update cursor updates the data, the update lock is converted to an exclusive lock. If the cursor does not update the row, when the transaction steps through to the next row, transactions using the TRANSACTION_READ_COMMITTED isolation level release the lock.
 (For update locks, the TRANSACTION_READ_UNCOMMITTED isolation level acts the same way as TRANSACTION_READ_COMMITTED.)

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Eric Radzinski added a comment - 26/Jan/06 07:35 AM
Attached patch address the bug that's identified in this issue. HTML file is included for review.

Mike Matrigali added a comment - 26/Jan/06 09:20 AM
the attached .html for this fix looks good to me.

Jean T. Anderson added a comment - 28/Jan/06 02:21 AM
Committed patch derby678.diff, revision 372919. Files modified:
$ svn status
M src/devguide/cdevconcepts842385.dita

Jean T. Anderson added a comment - 28/Feb/06 01:54 AM
No problems have been reported with the committed patch, so closing.

Jean T. Anderson added a comment - 26/Apr/06 06:03 AM
Reopen to merge fix to 10.1.3.

Jean T. Anderson added a comment - 26/Apr/06 06:04 AM
Merged from 10.2, committed revision 397012.