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 3CC1C9034 for ; Wed, 23 May 2012 13:56:42 +0000 (UTC) Received: (qmail 70830 invoked by uid 500); 23 May 2012 13:56:41 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 70786 invoked by uid 500); 23 May 2012 13:56:41 -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 70747 invoked by uid 99); 23 May 2012 13:56:41 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 13:56:41 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id C89311416DF for ; Wed, 23 May 2012 13:56:41 +0000 (UTC) Date: Wed, 23 May 2012 13:56:41 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: <1718051752.11664.1337781401824.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (DERBY-5779) Table functions and vtis should only accept arguments which are constant in their query block. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Rick Hillegas created DERBY-5779: ------------------------------------ Summary: Table functions and vtis should only accept arguments which are constant in their query block. Key: DERBY-5779 URL: https://issues.apache.org/jira/browse/DERBY-5779 Project: Derby Issue Type: Bug Components: SQL Affects Versions: 10.9.0.0 Reporter: Rick Hillegas Derby lets you invoke a table function/vti in the FROM list of a query, passing in arguments built out of columns in other tables in the FROM list. This syntax is illegal and the resulting queries have no meaning under the SQL Standard. See the discussion on DERBY-5554. We should forbid this syntax. Similar syntax involving correlated subqueries in the FROM list is already forbidden. Fixing this will create a backward incompatibility which requires a release note. In particular, the sample usage for SYSCS_DIAG.SPACE_TABLE, given in the Reference Manual, will no longer work after fixing this bug. Changes to SPACE_TABLE are being discussed on DERBY-5554. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira