Re: [GENERAL] SELECT INTO returns incorrect values

2008-09-03 Thread Tony Caduto
Bill, Did you try it like this: parent_id = 0 category_name = '' select category, parent_category_id from note.category where category_id = 477 into category_name, parent_id; raise notice 'curr cat, name, parent id: % % ', category_name, parent_id; I have found in the past that

[GENERAL] SELECT INTO returns incorrect values

2008-08-29 Thread Bill Todd
The following SELECT INTO returns incorrect values in the variables CATEGORY_NAME and PARENT_ID. If I copy the SELECT statement to pgAdmin, delete the INTO clause and run the query it returns the correct values. I am new to PostgreSQL and I must have something syntactically wrong in the SELECT

Re: [GENERAL] SELECT INTO returns incorrect values

2008-08-29 Thread Tom Lane
Bill Todd [EMAIL PROTECTED] writes: The following SELECT INTO returns incorrect values in the variables CATEGORY_NAME and PARENT_ID. If I copy the SELECT statement to pgAdmin, delete the INTO clause and run the query it returns the correct values. You didn't show us the whole function