Re: [GENERAL] Problem with coalesce..

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: [GENERAL] Problem with coalesce..
Дата
Msg-id Pine.BSF.4.10.10011010846000.69236-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Problem with coalesce..  ("George Henry C. Daswani" <gdaswani@esri.com>)
Ответы Re: Re: [GENERAL] Problem with coalesce..  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
There are still some contexts in which subqueries in expressions are
wierd. The example below appears to work in current sources however.

Stephan Szabo
sszabo@bigpanda.com

On Tue, 31 Oct 2000, George Henry C. Daswani wrote:

> Hello,
>
>     Was wondering if such a call is unsupported, or a bug?
>
> 7.0.2 (postgresql, linux redhat 7.0)
>
> SELECT COALESCE ((SELECT NULL,1)
>
> returns a 1, correct..
>
> however..
>
> SELECT COALESCE ((SELECT CURVALUE FROM TABLEKEYS WHERE TABLENAME = 'BUYER'),1)
>
> returns a "UNKNOWN expression type 501"
>
> SELECT CURVALUE FROM TABLEKEYS WHERE TABLENAME = 'BUYER'; returns a '0'
>
> Thanks..
>
> George
>
>
>


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Continuing Technical Education"
Дата:
Сообщение: Re: Problem with coalesce..
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Outer Joins