Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 85029 invoked from network); 22 Sep 2009 14:56:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Sep 2009 14:56:38 -0000 Received: (qmail 31263 invoked by uid 500); 22 Sep 2009 14:56:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 31243 invoked by uid 500); 22 Sep 2009 14:56:37 -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 31235 invoked by uid 99); 22 Sep 2009 14:56:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 14:56:37 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 14:56:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 02B06234C1EB for ; Tue, 22 Sep 2009 07:56:16 -0700 (PDT) Message-ID: <698173624.1253631376006.JavaMail.jira@brutus> Date: Tue, 22 Sep 2009 07:56:16 -0700 (PDT) From: "Bernt M. Johnsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-4385) Comparision with ALL (subquery) may give wrong result if constant is selected 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 Comparision with ALL (subquery) may give wrong result if constant is selected ----------------------------------------------------------------------------- Key: DERBY-4385 URL: https://issues.apache.org/jira/browse/DERBY-4385 Project: Derby Issue Type: Bug Reporter: Bernt M. Johnsen Priority: Critical Consider the following: CREATE TABLE t1 (i INT PRIMARY KEY, j INT); CREATE TABLE t2 (i INT); INSERT INTO t1 VALUES (1,1),(2,2); INSERT INTO t2 VALUES (81); The two following queries should give the same result: SELECT * FROM t1 WHERE i < ALL (SELECT i FROM t2); SELECT * FROM t1 WHERE i < ALL (SELECT 81 FROM t2); But, they don't: ij> SELECT * FROM t1 WHERE i < ALL (SELECT i FROM t2); I |J ----------------------- 1 |1 2 |2 2 rows selected ij> SELECT * FROM t1 WHERE i < ALL (SELECT 81 FROM t2); I |J ----------------------- 0 rows selected ij> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.