Re: plpgsql mixing variable in SELECT INTO ? - Mailing list pgsql-general

From Tom Lane
Subject Re: plpgsql mixing variable in SELECT INTO ?
Date
Msg-id 6528.1046703147@sss.pgh.pa.us
Whole thread Raw
In response to plpgsql mixing variable in SELECT INTO ?  ("Ben-Nes Michael" <miki@canaan.co.il>)
List pgsql-general
"Ben-Nes Michael" <miki@canaan.co.il> writes:
> The following line works:
> SELECT * INTO lft_rgt FROM forum_tree WHERE node_id = v_node_id;
> RETURN lft_rgt.f_id;
> The following lines dont work ( variable get mixed ), lft_rgt.f_id return
> lft_rgt.rgt :(
> SELECT lft, rgt, f_id INTO lft_rgt FROM forum_tree WHERE node_id =
> v_node_id;
> RETURN lft_rgt.f_id;

If this is meant as a bug report, it is entirely useless.  Please give a
complete, standalone example that someone else can run to reproduce the
problem.  You can't expect us to guess our way to all the context
involved in this query.

The bug reporting guidelines in the User's Guide
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/bug-reporting.html
are a tad verbose but are worth reading.

            regards, tom lane

pgsql-general by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: Off topic - was Re: [PATCHES] ALTER SEQUENCE
Next
From: "Ian Harding"
Date:
Subject: tsearch trouble REPOST