db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3478) Simple column names specified as part of "AS" clause in a table expression are ignored if the table expression is a view.
Date Thu, 27 Aug 2009 16:13:01 GMT

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

Dag H. Wanvik updated DERBY-3478:
---------------------------------

    Summary: Simple column names specified as part of "AS" clause in a table expression are
ignored if the table expression is a view.  (was: Simple column names specified as part of
"AS" clause in a table expression are ignore if the table expression is a view.)

> Simple column names specified as part of "AS" clause in a table expression are ignored
if the table expression is a view.
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3478
>                 URL: https://issues.apache.org/jira/browse/DERBY-3478
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4,
10.3.2.1
>            Reporter: A B
>            Assignee: Dag H. Wanvik
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: derby-3478.diff, derby-3478.stat
>
>
> Simple repro as follows:
> create table t1 (i int, j int);
> insert into t1 values (1, 1), (1, -1), (2, 2), (3, -3), (4, 4);
> create view v1 as select j, i from t1;
> create view v2 (x,y,z) as select j, i, i+j from t1;
> -- OK: Returns column names specified in AS clause.
> select * from t1 as x(a,b);
> -- OK: Returns column names for the views
> select * from v1;
> select * from v2;
> -- WRONG: Ignores column names specified in AS clause for the views.
> select * from v1 x(a,b);
> select * from v2 as x(a,b,c);
> I observed this as far back as 10.0.2.1, so this is not a regression.

-- 
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