db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4448) ArrayIndexOutOfBoundsException when trying to override generated column
Date Wed, 18 Nov 2009 22:44:39 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779704#action_12779704
] 

Knut Anders Hatlen commented on DERBY-4448:
-------------------------------------------

I think the problem is that DMLModStatementNode.forbidGenerationOverrides() only looks at
and modifies the RCL of the top-most source result set. Since it removes generated columns
from both the target RCL and the source RCL, the child result sets of the UnionNode representing
the multi-row VALUES clause are not processed, so all rows except the first row will end up
with more columns than the target RCL.

> ArrayIndexOutOfBoundsException when trying to override generated column
> -----------------------------------------------------------------------
>
>                 Key: DERBY-4448
>                 URL: https://issues.apache.org/jira/browse/DERBY-4448
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.5.3.0, 10.6.0.0
>            Reporter: Knut Anders Hatlen
>
> ij> create table t(a int, b generated always as (-a));
> 0 rows inserted/updated/deleted
> ij> insert into t(b) values (default), (2);
> ERROR XJ001: Java exception: '0 >= 0: java.lang.ArrayIndexOutOfBoundsException'.

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


Mime
View raw message