Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 12659 invoked from network); 13 Jul 2010 15:21:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Jul 2010 15:21:16 -0000 Received: (qmail 18750 invoked by uid 500); 13 Jul 2010 15:21:16 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 18726 invoked by uid 500); 13 Jul 2010 15:21:16 -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 18718 invoked by uid 99); 13 Jul 2010 15:21:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 15:21:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jul 2010 15:21:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6DFKpNm020922 for ; Tue, 13 Jul 2010 15:20:51 GMT Message-ID: <16367118.349061279034451661.JavaMail.jira@thor> Date: Tue, 13 Jul 2010 11:20:51 -0400 (EDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-887) Select statement returns wrong number of rows if you compare an integer column with a boolean expression in the where clause In-Reply-To: <869937190.1138401992915.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden resolved DERBY-887. ---------------------------------- Assignee: Rick Hillegas (was: Kathey Marsden) Fix Version/s: 10.5.3.1 Resolution: Fixed resolving for 10.5 and reassign Rick. > Select statement returns wrong number of rows if you compare an integer column with a boolean expression in the where clause > ---------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-887 > URL: https://issues.apache.org/jira/browse/DERBY-887 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0 > Environment: Java : java version "1.5.0_02" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09) > Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode) > Classpath : c:/pantry/derby.jar;c:/pantry/derbytools.jar; > OS: Windows XP Professional > Reporter: Manjula Kutty > Assignee: Rick Hillegas > Fix For: 10.5.3.1, 10.6.1.0 > > Attachments: bug887_interim.diff, bug887_interim.diff, derby-887-01-ag-noImplicitCasts.diff, derby-887-01-aj-noImplicitCasts.diff, DERBY-887.sql, releaseNote.html > > > I have a table with 2 columns one is BIGINT which is Generated always starting with 1 and increment by1 and the other one is timestamp > ij> select id,date from inbox where id = 0<3; > ID |DATE > ----------------------------------------------- > 25 |2006-01-26 14:35:46.584 > 34 |2006-01-26 14:36:16.588 > 21 |2006-01-26 14:34:46.455 > 22 |2006-01-26 14:34:47.176 > 27 |2006-01-26 14:35:47.054 > 24 |2006-01-26 14:35:16.58 > 28 |2006-01-26 14:35:47.305 > 35 |2006-01-26 14:36:18.771 > 31 |2006-01-26 14:35:48.496 > 32 |2006-01-26 14:35:48.887 > 33 |2006-01-26 14:35:49.308 > 11 rows selected > ij> select id,date from inbox where id = true; > ID |DATE > ----------------------------------------------- > 21 |2006-01-26 14:34:46.455 > 1 row selected > Both queries should return same number of rows > Also If I delete the first row from the table then select id,date from inbox where id = true; returns the second row > ij> delete from inbox where id=21; > 1 row inserted/updated/deleted > Then again run > ij> select id ,date from inbox where id=true; > ID |DATE > ----------------------------------------------- > 22 |2006-01-26 14:35:16.58 > Which indicates that the select returns only the first row and then is getting closed -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.