UNION result

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: UNION result
Date: 2003-01-15 04:03:53
Message-ID: 20030115.130353.08320170.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Does anybody know:

select 1.0 union select 1;
or
select 1 union select 1.0;

should return 1 or 1.0?

I see below on my Linux box:

test=# select 1 union select 1.0;
?column?
----------
1
(1 row)

test=# select 1.0 union select 1;
?column?
----------
1.0
(1 row)

This seems a little bit inconsistent...
--
Tatsuo Ishii

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-01-15 04:14:01 Re: UNION result
Previous Message Justin Clift 2003-01-15 02:50:45 Anyone want to get involved in writing the the driver to connect Star/OpenOffice and PostgreSQL?