Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 24271 invoked from network); 7 Sep 2007 15:44:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Sep 2007 15:44:56 -0000 Received: (qmail 30930 invoked by uid 500); 7 Sep 2007 15:44:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 30900 invoked by uid 500); 7 Sep 2007 15:44:49 -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 30891 invoked by uid 99); 7 Sep 2007 15:44:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2007 08:44:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 07 Sep 2007 15:46:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 68CAA714204 for ; Fri, 7 Sep 2007 08:44:31 -0700 (PDT) Message-ID: <26264269.1189179871414.JavaMail.jira@brutus> Date: Fri, 7 Sep 2007 08:44:31 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3061) Wrong results from query with two conjuncts In-Reply-To: <29296472.1189171833648.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 [ https://issues.apache.org/jira/browse/DERBY-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-3061: ---------------------------------- Derby Info: [Regression] Verified that this is a regresssion. Running against 10.2.2.1.545663 I see: ij> select mytable.id from mytable where mytable.id < 100 and mytable.id in ( 2, 15, 19, 20, 21, 48, 49 ); ID ----------- 2 15 19 20 21 48 49 7 rows selected > Wrong results from query with two conjuncts > ------------------------------------------- > > Key: DERBY-3061 > URL: https://issues.apache.org/jira/browse/DERBY-3061 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.3.1.4 > Reporter: Rick Hillegas > > Tim Dudgeon, on the user list, reports that the following query returns no results in 10.3.1.4 but works correctly in 10.2. I have verified that the query returns no results in the mainline as well. If you eliminate either of the the conjuncts, then the query returns the correct results: > SELECT MYTABLE.MY_ID > FROM MYTABLE > WHERE MYTABLE.MY_ID < 100 AND MYTABLE.MY_ID IN ( > 2,15,19,20,21,48,49 > ) > Here is a more complete script which demonstrates the problem: > drop table mytable; > create table mytable ( id int primary key ); > insert into mytable ( id ) > values > ( 0 ), ( 1 ), ( 2 ), ( 3 ), ( 4 ), ( 5 ), ( 6 ), ( 7 ), ( 8 ), ( 9 ); > insert into mytable select id + 10 from mytable; > insert into mytable select id + 20 from mytable; > insert into mytable select id + 40 from mytable; > insert into mytable select id + 100 from mytable; > select mytable.id > from mytable > where mytable.id < 100; > select mytable.id > from mytable > where mytable.id in ( 2, 15, 19, 20, 21, 48, 49 ); > select mytable.id > from mytable > where mytable.id < 100 > and mytable.id in ( 2, 15, 19, 20, 21, 48, 49 ); > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.