From: | Marcos Truchado <marcos(at)truchado(dot)jazztel(dot)es> |
---|---|
To: | pgsql-docs(at)postgresql(dot)org |
Subject: | error in plpgsql-statements.html#PLPGSQL-SELECT-INTO |
Date: | 2003-11-24 16:02:56 |
Message-ID: | 3FC22BB0.1030007@truchado.jazztel.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
Hi. I have just learned how to create my own triggers on plpgsql
language, and I think I have discover an error into the doc:
http://www.postgresql.org/docs/current/static/plpgsql-statements.html#PLPGSQL-SELECT-INTO
------------------------------------------------------------------------
DECLARE
users_rec RECORD;
full_name varchar;
BEGIN
SELECT INTO users_rec * FROM users WHERE user_id=3;
IF users_rec.homepage IS NULL THEN
-- user entered no homepage, return "http://"
RETURN ''http://'';
END IF;
END;
------------------------------------------------------------------------
full_name declared, but not used.
From | Date | Subject | |
---|---|---|---|
Next Message | Marcos Truchado | 2003-11-24 17:17:16 | error in plpgsql-statements.html#PLPGSQL-SELECT-INTO |
Previous Message | Halley Pacheco de Oliveira | 2003-11-24 10:56:23 | PostgreSQL 7.4 Documentation - create_sequence.sgml |