Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 18357 invoked from network); 8 Nov 2006 00:53:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2006 00:53:18 -0000 Received: (qmail 24439 invoked by uid 500); 8 Nov 2006 00:53:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 24402 invoked by uid 500); 8 Nov 2006 00:53:28 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 24393 invoked by uid 99); 8 Nov 2006 00:53:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 16:53:28 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 16:53:16 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 98C7A7142F5 for ; Tue, 7 Nov 2006 16:52:56 -0800 (PST) Message-ID: <25107667.1162947176623.JavaMail.jira@brutus> Date: Tue, 7 Nov 2006 16:52:56 -0800 (PST) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2052) JDBC.assertRowInResultSet compares the wrong value if using trimmed strings and a SMALLINT column exists. In-Reply-To: <30154116.1162946936400.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/DERBY-2052?page=all ] Daniel John Debrunner updated DERBY-2052: ----------------------------------------- Attachment: derby2052_diff.txt Patch that moves the locally scoped variables into the for loop and sets obj through all paths. > JDBC.assertRowInResultSet compares the wrong value if using trimmed strings and a SMALLINT column exists. > --------------------------------------------------------------------------------------------------------- > > Key: DERBY-2052 > URL: http://issues.apache.org/jira/browse/DERBY-2052 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.3.0.0 > Reporter: Daniel John Debrunner > Assigned To: Daniel John Debrunner > Attachments: derby2052_diff.txt > > > There is a bug in assertRowInResultSet where a path through the loop does not set the variable obj. > This leads to it being compared with the previous value. > Using locally scoped variables within the loop would have most likely caught this bug at development time. > Then the compiler sees that obj has one uninitialzed path through the code and throws an error. -- 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