Issue Details (XML | Word | Printable)

Key: CORE-2067
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: Adriano dos Santos Fernandes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

GROUP by and RDB$DB_KEY problems

Created: 07/Sep/08 02:58 PM   Updated: 25/Apr/11 03:38 PM
Component/s: Engine
Affects Version/s: 2.1.0, 2.5 Alpha 1, 2.1.1
Fix Version/s: 2.5 Beta 1

Time Tracking:
Not Specified

Issue Links:
Relate
 

Planning Status: Unspecified


 Description  « Hide
create table t1 (n integer);
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);

-- First problem: it should be invalid to group by n and select rdb$db_key
select n, rdb$db_key from t1 group by n;

-- Second problem: error: column unknown DB_KEY is wrong raised
select n, rdb$db_key from t1 group by 1, 2;

-- Third problem: wrong values for rdb$db_key are returned
select n, t1.rdb$db_key from t1 group by 1, 2;


 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pavel Cisar added a comment - 25/Apr/11 03:38 PM
QA test added.