pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roman <zotov@oe-it.ru>
To: pgsql-bugs@postgresql.org
Subject: BUG #6202: type of union column selection bug
Date: Sat, 10 Sep 2011 01:41:40 GMT
Message-ID: <201109100141.p8A1fe5s038019@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6202
Logged by:          Roman
Email address:      zotov@oe-it.ru
PostgreSQL version: 9.0.4
Operating system:   Win7x64
Description:        type of union column selection bug
Details: 

Query
select null union select 4
is Ok but
select null union select null union select 4
is Fail

i think it`s a bug because you choose type in second query twice
null and null -> text
text and int -> fail

and i think what check type category is not true, because i can`t create
implicit cast to resolve some problems, like
select 'a' union select 4
if i have implicit cast int->text i think it must work!!

Sorry second part is not bug it`s a feature but it`s my problem too



view thread (2+ messages)  latest in thread

Message-ID: <201109100141.p8A1fe5s038019@wwwmaster.postgresql.org>
Permalink:  ../201109100141.p8A1fe5s038019@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201109100141.p8A1fe5s038019@wwwmaster.postgresql.org

 · 

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: zotov@oe-it.ru
  Subject: Re: BUG #6202: type of union column selection bug
  In-Reply-To: <201109100141.p8A1fe5s038019@wwwmaster.postgresql.org>
  References: <201109100141.p8A1fe5s038019@wwwmaster.postgresql.org>

* 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