db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1172608 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java
Date Mon, 19 Sep 2011 13:16:36 GMT
Author: rhillegas
Date: Mon Sep 19 13:16:36 2011
New Revision: 1172608

URL: http://svn.apache.org/viewvc?rev=1172608&view=rev
Log:
DERBY-5389: Make sequence generators' internal state consistent when they clean up after errors.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java?rev=1172608&r1=1172607&r2=1172608&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java
Mon Sep 19 13:16:36 2011
@@ -290,6 +290,9 @@ public abstract class SequenceUpdater im
             }
             finally
             {
+                // if we failed to get a generator, we have no identity. see DERBY-5389.
+                if ( _sequenceGenerator == null ) { _uuidString = null; }
+            
                 subTransaction.commit();
                 subTransaction.destroy();
             }



Mime
View raw message