You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2009/11/18 23:44:39 UTC
[jira] Commented: (DERBY-4448) ArrayIndexOutOfBoundsException when
trying to override generated column
[ 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.