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