db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1763) Using RTRIM(LTRIM(col)) and group by col gives NPE
Date Wed, 06 Sep 2006 03:13:25 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1763?page=all ]

Kathey Marsden updated DERBY-1763:

    Derby Info:   (was: [Existing Application Impact])

Unchecking "Existing Application Impact" as it is an indicator that it is used for behavior
changes  which may newly affect applications that are already running successfully on Derby
.  From what I understand of this issue it is not a change in behavior or regression from
a previous Derby release which might affect an Existing Derby Application on upgrade.

Chris, I hope you will get involved and take a shot at fixing this bug.  There are lots of
SQL experts  on the list who I am sure would be happy to help. See: http://wiki.apache.org/db-derby/FrontPage#head-586d3e6d6e98537c1aff50dc1aec0d62412cb526
for information on getting started.

> 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:
>         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
> This issue is quite urgent for us, as we don't see a workaround to achieve the desired
> Attached an example table schema and the affected SELECT Statement.
> --------------------------------------------
> c1 VARCHAR(10),
> c2 VARCHAR(10)
> );
> INSERT INTO t1 VALUES('a', 'b');
> INSERT INTO t1 VALUES('c', 'd');
>                  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


View raw message