openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r1430543 - /openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Tue, 08 Jan 2013 21:12:49 GMT
Author: allee8285
Date: Tue Jan  8 21:12:49 2013
New Revision: 1430543

URL: http://svn.apache.org/viewvc?rev=1430543&view=rev
Log:
OPENJPA-2236 - back port from 2.2.x to 2.1.x

Modified:
    openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java

Modified: openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=1430543&r1=1430542&r2=1430543&view=diff
==============================================================================
--- openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/branches/2.1.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Tue Jan  8 21:12:49 2013
@@ -445,10 +445,15 @@ public class DBDictionary
             if (log.isTraceEnabled()) {                    
                 log.trace(DBDictionaryFactory.toString(metaData));
 
-                if (isJDBC3)
-                    log.trace(_loc.get("connection-defaults", new Object[]{
-                        conn.getAutoCommit(), conn.getHoldability(),
-                        conn.getTransactionIsolation()}));
+                if (isJDBC3) {
+                    try {
+                        log.trace(_loc.get("connection-defaults", new Object[]{
+                            conn.getAutoCommit(), conn.getHoldability(),
+                            conn.getTransactionIsolation()}));
+                    } catch (Throwable t) {
+                        log.trace("Unable to trace connection settings", t);
+                    }
+                }
             }
             
             // Configure the naming utility



Mime
View raw message