Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0CDE11F43 for ; Fri, 16 May 2014 22:38:43 +0000 (UTC) Received: (qmail 79900 invoked by uid 500); 16 May 2014 11:48:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 37278 invoked by uid 500); 16 May 2014 11:28:47 -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 65279 invoked by uid 99); 16 May 2014 11:19:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 11:19:13 +0000 Date: Fri, 16 May 2014 11:19:13 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DERBY-6577) Quantified comparison returns wrong result in CASE, COALESCE, IN and BETWEEN MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen resolved DERBY-6577. --------------------------------------- Resolution: Fixed Fix Version/s: 10.11.0.0 Thanks for looking at the patches, Dag. The fixes have been committed to trunk. Marking the issue as resolved. > Quantified comparison returns wrong result in CASE, COALESCE, IN and BETWEEN > ---------------------------------------------------------------------------- > > Key: DERBY-6577 > URL: https://issues.apache.org/jira/browse/DERBY-6577 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.11.0.0, 10.10.2.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Fix For: 10.11.0.0 > > Attachments: d6577-1a.diff, d6577-2a.diff > > > I'm seeing this on head of trunk: > {noformat} > ij> select c, c = all (values 'Y'), case when c = all (values 'Y') then true else false end from (values 'Y', 'N') v(c); > C|2 |3 > ------------- > Y|true |false > N|false|true > 2 rows selected > {noformat} > Column 2 and column 3 should have the same value, but something seems to go wrong when the quantified comparison is used in a CASE expression. > I'm seeing the expected result on 10.10.2.0, though: > {noformat} > ij> select c, c = all (values 'Y'), case when c = all (values 'Y') then true else false end from (values 'Y', 'N') v(c); > C|2 |3 > ------------- > Y|true |true > N|false|false > 2 rows selected > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)