Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group