Re: Return Record with CASE problem - Mailing list pgsql-general

From Rory Campbell-Lange
Subject Re: Return Record with CASE problem
Date
Msg-id 20030611141148.GB24912@campbell-lange.net
Whole thread Raw
In response to Re: Return Record with CASE problem  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: Return Record with CASE problem  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: Return Record with CASE problem  (Dennis Gearon <gearond@cvc.net>)
List pgsql-general
Thanks for the response, Stephan.

I ommitted to say that selecting AS typer varchar doesn't work either.

On 11/06/03, Stephan Szabo (sszabo@megazone23.bigpanda.com) wrote:
>
> On Wed, 11 Jun 2003, Rory Campbell-Lange wrote:
>
> > Selecting on this function works fine when I don't use the CASE column
> > 'typer' in my select and don't include it in the returned 'resulter' in
> > the function. 'typer'  is a int2, while the output is a varchar. How can
> > I get to "typer" in my select?
> >
> > Failed select:
> >
> > temporary=> SELECT
> >                 *
> >             FROM
> >                 fn_v1_board_view_board (1, 1)
> >             AS (n_id integer, t_description varchar, t_name varchar,
> >                 typer integer, n_id_photo integer);
>
> I think that should probably be typer varchar since that's what you seem
> to actually be returning.
>
>

--
Rory and Barbara Campbell-Lange
Flat 10, 72 Tottenham Court Road, London, W1T 2HE
(m) (0)7939150693 (h) (0)2075805902 (f) (0)2076375880

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Return Record with CASE problem
Next
From: Network Administrator
Date:
Subject: Re: [pgsql-advocacy] MySQL gets $19.5 MM