db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r1564987 - in /db/derby/code/branches/10.10: ./ java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
Date Wed, 05 Feb 2014 23:11:40 GMT
Author: myrnavl
Date: Wed Feb  5 23:11:39 2014
New Revision: 1564987

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

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

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

Modified: db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java?rev=1564987&r1=1564986&r2=1564987&view=diff
==============================================================================
--- db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
(original)
+++ db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/jdbc/TransactionResourceImpl.java
Wed Feb  5 23:11:39 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