pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12625: operation 'union' confirms the type of the column with 2 unknown types.
Date: Thu, 22 Jan 2015 07:53:34 -0700 (MST)
Message-ID: <1421938414035-5835023.post@n5.nabble.com> (raw)
In-Reply-To: <20150122050230.32673.52053@wrigleys.postgresql.org>
References: <20150122050230.32673.52053@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

yuanchongwei007 wrote
> The following bug has been logged on the website:
> 
> Bug reference:      12625
> Logged by:          Chongwei Yuan
> Email address:      

> yuanchongwei007@

> PostgreSQL version: 9.3.5
> Operating system:   Ubuntu 14.04.1 LTS
> Description:        
> 
> 1. exce sql [ select 'abc' as col ] ; result : column 'col' has unknow
> type.
> 2. exce sql [ select 'def' as col ] ; result : column 'col' has unknow
> type.
> But
> 3. exce sql [ select 'abc' as col union select 'def' as col ] ; result :
> colum 'col' has text type.

This is working as intended.  If you have a problem with this you might want
to explain what that is.  If anything, IMO, the first two queries have the
problem, not the third.

David J.





--
View this message in context: http://postgresql.nabble.com/BUG-12625-operation-union-confirms-the-type-of-the-column-with-2-unknow...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <1421938414035-5835023.post@n5.nabble.com>
Permalink:  ../1421938414035-5835023.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1421938414035-5835023.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: david.g.johnston@gmail.com
  Subject: Re: BUG #12625: operation 'union' confirms the type of the column with 2 unknown types.
  In-Reply-To: <1421938414035-5835023.post@n5.nabble.com>
  References: <20150122050230.32673.52053@wrigleys.postgresql.org> <1421938414035-5835023.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox