Re: UNION result - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: UNION result
Date
Msg-id 20030114221416.X80006-100000@megazone23.bigpanda.com
Whole thread Raw
In response to UNION result  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: UNION result  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, 15 Jan 2003, Tatsuo Ishii wrote:

> Does anybody know:
>
> select 1.0 union select 1;
> or
> select 1 union select 1.0;
>
> should return 1 or 1.0?

Hmm, I think (but am not sure) that the spec bit
in SQL92 that addresses this is 9.3
Set operation result data types based on the
text in 7.10 query expression.  It seems
to say to me that should always be an
approximate numeric (if 1.0 is an approximate
numeric).  Am I reading that right?



pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Re: UNION result
Next
From: Mark Kirkwood
Date:
Subject: Re: Anyone have a fresh Solaris 8 SPARC system to create