Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 16733 invoked from network); 28 Mar 2007 23:44:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 23:44:46 -0000 Received: (qmail 10478 invoked by uid 500); 28 Mar 2007 23:44:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10450 invoked by uid 500); 28 Mar 2007 23:44:53 -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 10441 invoked by uid 99); 28 Mar 2007 23:44:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 16:44:53 -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; Wed, 28 Mar 2007 16:44:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4AFE271406C for ; Wed, 28 Mar 2007 16:44:25 -0700 (PDT) Message-ID: <8431815.1175125465303.JavaMail.jira@brutus> Date: Wed, 28 Mar 2007 16:44:25 -0700 (PDT) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-2500) Assertion failure preparing query with AND and OR in where clause In-Reply-To: <18585362.1175124745138.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-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] A B reassigned DERBY-2500: -------------------------- Assignee: A B > Assertion failure preparing query with AND and OR in where clause > ----------------------------------------------------------------- > > Key: DERBY-2500 > URL: https://issues.apache.org/jira/browse/DERBY-2500 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.3.0.0 > Reporter: Andrew McIntyre > Assigned To: A B > > See commented out test in DistinctTest, DistinctTest.testResultSetInOrderWhenUsingIndex. > The actual assert is: > ASSERT FAILED Found IN-list probing (NLR.LUSERNAME = ) while generating HASH join, which should not happen. > I was able to simplify the query a little: > SELECT DISTINCT nb.name AS name, nb.summary AS summary FROM netbutton1 nb, netbuttonlibraryrole1 nlr, library_netbutton ln WHERE nlr.netbuttonlibrary_id = ln.netbuttonlibrary_id AND (nlr.lusername = ? OR nlr.lusername =?) > Removing nlr.netbuttonlibrary_id = ln.netbuttonlibrary_id clause but leaving the 'nb.lname = ln.lname' in front of the AND did not reproduce the problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.