Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0C290B5DC47 for ; Fri, 9 Sep 2011 22:41:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 52917-03 for ; Sat, 10 Sep 2011 01:41:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 370D7B5DC14 for ; Fri, 9 Sep 2011 22:41:40 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p8A1feB3038021 for ; Sat, 10 Sep 2011 01:41:40 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p8A1fe5s038019; Sat, 10 Sep 2011 01:41:40 GMT (envelope-from www) Date: Sat, 10 Sep 2011 01:41:40 GMT Message-Id: <201109100141.p8A1fe5s038019@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6202: type of union column selection bug From: "Roman" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201109/65 X-Sequence-Number: 31082 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