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 B0983115D8 for ; Mon, 5 May 2014 12:42:18 +0000 (UTC) Received: (qmail 88232 invoked by uid 500); 5 May 2014 12:42:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 88172 invoked by uid 500); 5 May 2014 12:42: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 88155 invoked by uid 99); 5 May 2014 12:42:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 12:42:14 +0000 Date: Mon, 5 May 2014 12:42:14 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DERBY-6563) NOT elimination for CASE expressions is broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Knut Anders Hatlen created DERBY-6563: ----------------------------------------- Summary: NOT elimination for CASE expressions is broken Key: DERBY-6563 URL: https://issues.apache.org/jira/browse/DERBY-6563 Project: Derby Issue Type: Bug Components: SQL Affects Versions: 10.10.2.0 Reporter: Knut Anders Hatlen NOT elimination for CASE expressions seems to be broken. Take this example: {noformat} ij> select * from sysibm.sysdummy1 where not ( case when ibmreqd = 'Y' then true else true end ); IBM& ---- Y 1 row selected {noformat} Both branches of the CASE expression evaluate to TRUE, so one would expect the predicate "not ( case ... )" to evaluate to FALSE, and the query should return an empty result. -- This message was sent by Atlassian JIRA (v6.2#6252)