db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1524037 - in /db/derby/code/branches/10.10: ./ java/engine/org/apache/derby/impl/jdbc/Util.java
Date Tue, 17 Sep 2013 13:34:12 GMT
Author: rhillegas
Date: Tue Sep 17 13:34:12 2013
New Revision: 1524037

URL: http://svn.apache.org/r1524037
Log:
DERBY-6346: Port 1524026 from trunk to 10.10 branch.

Modified:
    db/derby/code/branches/10.10/   (props changed)
    db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/Util.java

Propchange: db/derby/code/branches/10.10/
------------------------------------------------------------------------------
  Merged /db/derby/code/trunk:r1524026

Modified: db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/Util.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/Util.java?rev=1524037&r1=1524036&r2=1524037&view=diff
==============================================================================
--- db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/Util.java (original)
+++ db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/Util.java Tue Sep
17 13:34:12 2013
@@ -367,9 +367,13 @@ public abstract class Util  {
                 next = javaException(cause);
             }
         }
-		return newEmbedSQLException(SQLState.JAVA_EXCEPTION,
+		SQLException    result = newEmbedSQLException(SQLState.JAVA_EXCEPTION,
                 new Object[] {name, msg}, next,
                 ExceptionSeverity.NO_APPLICABLE_SEVERITY, t);
+
+    	if ( result.getErrorCode() >= logSeverityLevel ) { logSQLException( result ); }
+        
+        return result;
 	}
 
 



Mime
View raw message