pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #12625: operation 'union' confirms the type of the column with 2 unknown types.
2+ messages / 2 participants
[nested] [flat]

* BUG #12625: operation 'union' confirms the type of the column with 2 unknown types.
@ 2015-01-22 05:02  yuanchongwei007@163.com
  0 siblings, 1 reply; 2+ messages in thread

From: yuanchongwei007@163.com @ 2015-01-22 05:02 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      12625
Logged by:          Chongwei Yuan
Email address:      yuanchongwei007@163.com
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.


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #12625: operation 'union' confirms the type of the column with 2 unknown types.
@ 2015-01-22 14:53  David G Johnston <david.g.johnston@gmail.com>
  parent: yuanchongwei007@163.com
  0 siblings, 0 replies; 2+ messages in thread

From: David G Johnston @ 2015-01-22 14:53 UTC (permalink / raw)
  To: pgsql-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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-01-22 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 05:02 BUG #12625: operation 'union' confirms the type of the column with 2 unknown types. yuanchongwei007@163.com
2015-01-22 14:53 ` David G Johnston <david.g.johnston@gmail.com>

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