NULL value in subselect in UNION causes error

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: NULL value in subselect in UNION causes error
Date: 2007-01-26 19:58:53
Message-ID: 45BA5D7D.8040608@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Checked it against HEAD and 8.2:

postgres=# select 1, 1, 1 union select * from (select 2, null, 2) two;
ERROR: failed to find conversion function from "unknown" to integer

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2007-01-26 20:22:17 Re: Recursive query syntax ambiguity
Previous Message Pavan Deolasee 2007-01-26 18:44:32 Re: Piggybacking vacuum I/O