Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 93460 invoked from network); 25 Aug 2006 09:36:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 09:36:33 -0000 Received: (qmail 42738 invoked by uid 500); 25 Aug 2006 09:36:32 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42703 invoked by uid 500); 25 Aug 2006 09:36:32 -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 42694 invoked by uid 99); 25 Aug 2006 09:36:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 02:36:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 02:36:32 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58E767141B8 for ; Fri, 25 Aug 2006 09:33:22 +0000 (GMT) Message-ID: <487025.1156498402336.JavaMail.jira@brutus> Date: Fri, 25 Aug 2006 02:33:22 -0700 (PDT) From: "Christopher Schick (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-1763) Using RTRIM(LTRIM(col)) and group by col gives NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Using RTRIM(LTRIM(col)) and group by col gives NPE -------------------------------------------------- Key: DERBY-1763 URL: http://issues.apache.org/jira/browse/DERBY-1763 Project: Derby Issue Type: Bug Components: SQL Affects Versions: 10.1.3.1 Environment: Windows 2000, Sun JDK 1.4.2_10 Reporter: Christopher Schick When trying to execute a simple SQL Statement that includes both the RTRIM() and LTRIM() functions on a column in the SELECT clause and contains a GROUP BY clause on that column, the following Nullpointer Exception is thrown: ERROR XJ001: Java exception: ': java.lang.NullPointerException'. This does NOT happen, if only RTRIM() OR LTRIM() is used, or if no GROUP BY clause is specified. This issue is quite urgent for us, as we don't see a workaround to achieve the desired results. Attached an example table schema and the affected SELECT Statement. -------------------------------------------- CREATE TABLE t1 ( c1 VARCHAR(10), c2 VARCHAR(10) ); INSERT INTO t1 VALUES('a', 'b'); INSERT INTO t1 VALUES('c', 'd'); SELECT RTRIM(LTRIM(c1)), COUNT(*) FROM t1 GROUP BY c1; -- 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