Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 12582 invoked from network); 13 Jul 2007 19:14:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 19:14:26 -0000 Received: (qmail 77029 invoked by uid 500); 13 Jul 2007 19:14:29 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 76900 invoked by uid 500); 13 Jul 2007 19:14:28 -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 76763 invoked by uid 99); 13 Jul 2007 19:14:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 12:14:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 12:14:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB54D71420C for ; Fri, 13 Jul 2007 12:14:04 -0700 (PDT) Message-ID: <29711394.1184354044764.JavaMail.jira@brutus> Date: Fri, 13 Jul 2007 12:14:04 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2937) ERROR 22011: The second or third argument of the SUBSTR function is out of range with data concatenation in group by query. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ERROR 22011: The second or third argument of the SUBSTR function is out of range with data concatenation in group by query. ----------------------------------------------------------------------------------------------------------------------------- Key: DERBY-2937 URL: https://issues.apache.org/jira/browse/DERBY-2937 Project: Derby Issue Type: Bug Components: SQL Affects Versions: 10.4.0.0 Reporter: Daniel John Debrunner Assignee: Daniel John Debrunner CREATE TABLE A (C CHAR(10) NOT NULL, D DATE NOT NULL, DC DECIMAL(6,2)); INSERT INTO A VALUES ('aaa', DATE('2007-07-10'), 500.00); SELECT A.C, SUBSTR (MAX(CAST(A.D AS CHAR(10)) || CAST(A.DC AS CHAR(8))), 11, 8) AS BUG FROM A GROUP BY A.C; results in a 22011 error on the select. ij> C |BUG ------------------- ERROR 22011: The second or third argument of the SUBSTR function is out of range Note that the ResultSetMetaData seems to indicate to ij that the column width of "BUG' is four instead of 18. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.