openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r1201383 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/NativeJDBCSeq.java
Date Sun, 13 Nov 2011 01:25:18 GMT
Author: allee8285
Date: Sun Nov 13 01:25:18 2011
New Revision: 1201383

URL: http://svn.apache.org/viewvc?rev=1201383&view=rev
Log:
OPENJPA-2069 Tolerate concurrent sequence alternation.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/NativeJDBCSeq.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/NativeJDBCSeq.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/NativeJDBCSeq.java?rev=1201383&r1=1201382&r2=1201383&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/NativeJDBCSeq.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/NativeJDBCSeq.java
Sun Nov 13 01:25:18 2011
@@ -319,6 +319,8 @@ public class NativeJDBCSeq
             stmnt = conn.prepareStatement(sql);
             dict.setTimeouts(stmnt, _conf, false);
             rc = stmnt.executeUpdate();
+        } catch (Exception e) {
+            // tolerate exception when attempting to alter increment
         } finally {
             // clean up our resources
             if (stmnt != null) {



Mime
View raw message