openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fa...@apache.org
Subject svn commit: r733205 - /openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/InformixDictionary.java
Date Sat, 10 Jan 2009 00:44:55 GMT
Author: fancy
Date: Fri Jan  9 16:44:55 2009
New Revision: 733205

URL: http://svn.apache.org/viewvc?rev=733205&view=rev
Log:
OPENJPA-853 Informix Cursor not open problem

Modified:
    openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/InformixDictionary.java

Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/InformixDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/InformixDictionary.java?rev=733205&r1=733204&r2=733205&view=diff
==============================================================================
--- openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/InformixDictionary.java
(original)
+++ openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/InformixDictionary.java
Fri Jan  9 16:44:55 2009
@@ -245,6 +245,15 @@
     public Connection decorate(Connection conn)
         throws SQLException {
         conn = super.decorate(conn);
+        if (isJDBC3 && conn.getHoldability() != 
+            ResultSet.HOLD_CURSORS_OVER_COMMIT) {
+            conn.setHoldability(ResultSet.HOLD_CURSORS_OVER_COMMIT);
+            if (log.isTraceEnabled()) {                    
+                log.trace(_loc.get("connection-defaults", new Object[]{
+                    conn.getAutoCommit(), conn.getHoldability(),
+                    conn.getTransactionIsolation()}));
+            }
+        }
 
         // if we haven't already done so, initialize the lock mode of the
         // connection



Mime
View raw message