Re: UNION result

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: UNION result
Date: 2003-01-15 06:18:56
Message-ID: 20030114221416.X80006-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2003-01-15 08:56:14 Re: Anyone have a fresh Solaris 8 SPARC system to create
Previous Message Christopher Kings-Lynne 2003-01-15 04:19:24 Re: UNION result