ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Grabowski (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATISNET-89) CacheKey.Equals(object) does not check _statementName for equality
Date Sat, 09 Jul 2005 06:49:09 GMT
CacheKey.Equals(object) does not check _statementName for equality
------------------------------------------------------------------

         Key: IBATISNET-89
         URL: http://issues.apache.org/jira/browse/IBATISNET-89
     Project: iBatis for .NET
        Type: Bug
  Components: DataMapper  
    Reporter: Ron Grabowski
    Priority: Trivial


The overloaded Equals method checks all the private properties for equality except for _statementName.
The last couple lines of the method are:

 if (_sql != null ? !_sql.Equals(cacheKey._sql) : cacheKey._sql != null) return false;
 return true;

They  might need to be:

 if (_sql != null ? !_sql.Equals(cacheKey._sql) : cacheKey._sql != null) return false;
 if (_statementName != null ? !_statementName.Equals(cacheKey._statementName) : cacheKey._statementName
!= null) return false;
 return true;



 


 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message