BUG #5970: intersect and collation on types

Started by Rikard Pavelicabout 15 years ago2 messagesbugs
Jump to latest
#1Rikard Pavelic
rikard.pavelic@zg.htnet.hr

The following bug has been logged online:

Bug reference: 5970
Logged by: Rikard Pavelic
Email address: rikard.pavelic@zg.htnet.hr
PostgreSQL version: 9.1.alpha5
Operating system: Windows XP SP3
Description: intersect and collation on types
Details:

create table test_collation (id int, name varchar);
insert into test_collation values (1, 'abc'), (2,'bcd');

--works
select * from test_collation tc
intersect
select * from test_collation tc;

--doesn't work
select tc from test_collation tc
intersect
select tc from test_collation tc;

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Rikard Pavelic (#1)
Re: BUG #5970: intersect and collation on types

"Rikard Pavelic" <rikard.pavelic@zg.htnet.hr> writes:

The following bug has been logged online:

Bug reference: 5970
Logged by: Rikard Pavelic
Email address: rikard.pavelic@zg.htnet.hr
PostgreSQL version: 9.1.alpha5
Operating system: Windows XP SP3
Description: intersect and collation on types
Details:

create table test_collation (id int, name varchar);
insert into test_collation values (1, 'abc'), (2,'bcd');

--works
select * from test_collation tc
intersect
select * from test_collation tc;

--doesn't work
select tc from test_collation tc
intersect
select tc from test_collation tc;

Fixed in HEAD. Thanks for the report!

regards, tom lane