From: | Daniel Wickstrom <danw(at)rtp(dot)ericsson(dot)se> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: select fails inside function, but works otherwise |
Date: | 2001-03-19 20:07:20 |
Message-ID: | 15030.26360.260316.532372@gargle.gargle.HOWL |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
Tom> Daniel Wickstrom <danw(at)rtp(dot)ericsson(dot)se> writes:
>> -- This select is failing. It does not return the correct
>> value -- when object_id = 44
>> select context_id, security_inherit_p into context_id,
>> security_inherit_p from acs_objects where object_id =
>> check_path__object_id;
Tom> Try distinguishing the field names from the plpgsql variable
Tom> names. I believe the machine is seeing this as a command to
Tom> select the current values of the plpgsql variables (ie, two
Tom> NULLs) into those same variables. IIRC, unqualified names
Tom> will be matched first to plpgsql variables and only second to
Tom> fields of the query tables.
That was the problem.
Thanks,
Dan
From | Date | Subject | |
---|---|---|---|
Next Message | Brent R. Matzelle | 2001-03-19 20:11:17 | Re: postgreSQL db temporary on Microsoft IIS 4.0 |
Previous Message | Vilson farias | 2001-03-19 20:01:03 | vacuumdb locked - part II |