Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE VIEW without column list when UNION is used [CORE1402] #1820

Closed
firebird-automations opened this issue Aug 3, 2007 · 8 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Emil Totev (emilt)

Relate to CORE2424
Is related to QA301

Column list should not be required when creating views based on UNION statements.
Column names should be the same as when the SELECT query is run outside the view.

"The column identifiers of the output set are those specified in the first SELECT specification.
If you would like to use alternative column names, column aliasing can be used in the
output list of the first SELECT specification"

Commits: 1b5a289

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12750 ] => Firebird [ 14436 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue relate to CORE2424 [ CORE2424 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Test cases:

recreate view V1 as
select d.rdb$relation_id from rdb$database d
union all
select d.rdb$relation_id from rdb$database d

recreate view V2 as
select d.rdb$relation_id as q from rdb$database d
union all
select d.rdb$relation_id as w from rdb$database d

recreate view V3 as
select a from (select 1 a from rdb$database)
union all
select b from (select 1 b from rdb$database)

recreate view V4 as
select a as a1 from (select 1 a from rdb$database)
union all
select b as b1 from (select 1 b from rdb$database)

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC1 [ 10300 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA301 [ QA301 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants