[ 
https://issues.apache.org/jira/browse/DERBY-4410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-4410:
--------------------------------------

    Attachment: adjustIndexWithTest.diff

Thanks for looking at the patch, Bryan!

Regarding the current behaviour, also note that it doesn't re-process all the 
expanded columns, it always skips the first one in the expanded list, which 
also suggests that the re-processing of the rest of the columns is unnecessary.

I'm uploading a new patch which changes the space indentation in RCL to tabs 
and adds a test case in JoinTest. All the regression tests ran cleanly.

> NullPointerException when USING clause contains all columns in both join 
> tables
> -------------------------------------------------------------------------------
>
>                 Key: DERBY-4410
>                 URL: https://issues.apache.org/jira/browse/DERBY-4410
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.6.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: adjustIndex.diff, adjustIndexWithTest.diff
>
>
> ij> create table t(x int);
> 0 rows inserted/updated/deleted
> ij> select t1.*, t2.* from t t1 join t t2 using (x);
> ERROR XJ001: Java exception: ': java.lang.NullPointerException'.
> This statement should have raised an exception because both t1.* and t2.* 
> expand to no columns. See DERBY-4407.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to