Re: CASE statement and SETOF values

From: Christian Schoenebeck <cschoene(at)stud(dot)hs-heilbronn(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: CASE statement and SETOF values
Date: 2006-07-25 14:59:03
Message-ID: 200607251659.04436.cschoene@stud.hs-heilbronn.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am Dienstag, 25. Juli 2006 00:01 schrieb Stephan Szabo:
> The above basically looks like:
> CASE WHEN <search condition> THEN <value expression> ELSE
> <value expression> END.
>
> In SQL92 at least, the form of <value expression> which looks like (SELECT
> ...) is <scalar subquery> which is limited to 1 column and 1 row. The
> other subquery forms don't look legal in that position unless they changed
> that in a later version of the spec.

Ok, and is there any way to circumvent this problem?

CU
Christian

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roman Chervotkin 2006-07-25 15:18:17 Re: Invalid column display size. Cannot be less than zero
Previous Message Merlin Moncure 2006-07-25 14:49:51 Re: Beginner's questions about creating a custom data type in PostgreSQL...