Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 34294 invoked from network); 9 Jul 2005 06:49:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jul 2005 06:49:26 -0000 Received: (qmail 65455 invoked by uid 500); 9 Jul 2005 06:49:26 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 65367 invoked by uid 500); 9 Jul 2005 06:49:24 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 65353 invoked by uid 500); 9 Jul 2005 06:49:24 -0000 Delivered-To: apmail-incubator-ibatis-dev@incubator.apache.org Received: (qmail 65338 invoked by uid 99); 9 Jul 2005 06:49:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2005 23:49:12 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id AFF9016 for ; Sat, 9 Jul 2005 08:49:09 +0200 (CEST) Message-ID: <2135058421.1120891749719.JavaMail.jira@ajax.apache.org> Date: Sat, 9 Jul 2005 08:49:09 +0200 (CEST) From: "Ron Grabowski (JIRA)" To: ibatis-dev@incubator.apache.org Subject: [jira] Created: (IBATISNET-89) CacheKey.Equals(object) does not check _statementName for equality Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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