db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1565377 - in /db/derby/code/branches/10.9: ./ java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
Date Thu, 06 Feb 2014 18:07:29 GMT
Author: myrnavl
Date: Thu Feb  6 18:07:28 2014
New Revision: 1565377

URL: http://svn.apache.org/r1565377
Log:
DERBY-6426; Fix isLoginException
   merge of revision 1550287 from trunk

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

Propchange: db/derby/code/branches/10.9/
------------------------------------------------------------------------------
  Merged /db/derby/code/trunk:r1550287

Modified: db/derby/code/branches/10.9/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.9/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java?rev=1565377&r1=1565376&r2=1565377&view=diff
==============================================================================
--- db/derby/code/branches/10.9/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
(original)
+++ db/derby/code/branches/10.9/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
Thu Feb  6 18:07:28 2014
@@ -384,8 +384,8 @@ public final class TransactionResourceIm
      * @return true if this is a login failure exception
      */
     private boolean isLoginException(Throwable thrownException) {
-       if (thrownException instanceof StandardException) {
-           ((StandardException) thrownException).getSQLState().equals(SQLState.LOGIN_FAILED);
+       if ((thrownException instanceof StandardException) &&
+           ((StandardException) thrownException).getSQLState().equals(SQLState.LOGIN_FAILED))
{
            return true;
        }
        return false;



Mime
View raw message