Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 71159 invoked from network); 15 Jun 2005 01:19:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2005 01:19:08 -0000 Received: (qmail 51059 invoked by uid 500); 15 Jun 2005 01:19:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 50960 invoked by uid 500); 15 Jun 2005 01:19:04 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 50933 invoked by uid 99); 15 Jun 2005 01:19:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Jun 2005 18:19:01 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1B473358 for ; Wed, 15 Jun 2005 02:56:47 +0200 (CEST) Message-ID: <689851965.1118797007079.JavaMail.jira@ajax.apache.org> Date: Wed, 15 Jun 2005 02:56:47 +0200 (CEST) From: "David Van Couvering (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-364) Provide a more helpful message when the incorrect column name is given in a SELECT statement for a VTI Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Provide a more helpful message when the incorrect column name is given in a SELECT statement for a VTI ------------------------------------------------------------------------------------------------------ Key: DERBY-364 URL: http://issues.apache.org/jira/browse/DERBY-364 Project: Derby Type: Improvement Components: SQL Versions: 10.0.2.1, 10.0.2.0, 10.1.0.0 Reporter: David Van Couvering Priority: Trivial If you specify a column name incorrectly in a SELECT statement from a VTI, you get a fairly unhelpful error message ij> SELECT SQLSTATE FROM new org.apache.derby.diag.ErrorMessages() vti; ERROR 42X01: Syntax error: Encountered "SQLSTATE" at line 1, column 8. ij> SELECT SQL_STATE FROM new org.apache.derby.diag.ErrorMessages() vti; -- list of SQL States returned -- If you do the same thing from a regular table, the error message is much more clear: ij> create table foo(id integer); 0 rows inserted/updated/deleted ij> select ixd from foo; ERROR 42X04: Column 'IXD' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREA TE or ALTER TABLE statement then 'IXD' is not a column in the target table. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira