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

Regression: Group by fails if subselect-column is involved [CORE4084] #4412

Closed
firebird-automations opened this issue Apr 17, 2013 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Thomas Beckmann (thbeckmann)

The following statement works as expected in FB2.5 but fails in 3.0, returning "SQL error code = -104. Invalid expression in the select list (not contained in either an aggregate function or the GROUP BY clause)."

select
iif(D is null, 10, 0) + SYS as SYS,
count(*)
from (select
(select d.RDB$RELATION_ID from RDB$DATABASE d) as D,
coalesce(r.RDB$SYSTEM_FLAG, 0) as SYS
from RDB$RELATIONS r)
group by 1

Commits: 2b52e34 FirebirdSQL/fbt-repository@a45a188

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 3.0 Initial [ 10301 ]

Version: 3.0 Alpha 1 [ 10331 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

This is a 3.0 regression

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

summary: Group by fails if subselect-column is involved => Regression: Group by fails if subselect-column is involved

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Sean, every bug targeting only 3.0 is obviously a regression (in relation to < 3.0). And almost every bug related to existing functionality is a regression in relation to some version, or it's a bug related to a new feature.

I fail to see how this adds information to the 3.0 tickets.

@firebird-automations
Copy link
Collaborator Author

Commented by: Thomas Beckmann (thbeckmann)

Hi Adriano,

I just did a download of the nightly build, which tells me, version is "WI-T3.0.0.30367 Firebird 3.0 Unstable" - and that still contains the bug. Will the fix come later?

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

You were slightly faster than our snapshot build farm :-) Now the today's version is there, buildno is 30370.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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