OPENJPA-2236 - back port from 2.2.x to 2.1.x

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1430543 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2013-01-08 21:12:49 +00:00
parent 3aeefe26f5
commit d3380bdb51
1 changed files with 9 additions and 4 deletions

View File

@ -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