public inbox for [email protected]  
help / color / mirror / Atom feed
error in plpgsql-statements.html#PLPGSQL-SELECT-INTO
2+ messages / 2 participants
[nested] [flat]

* error in plpgsql-statements.html#PLPGSQL-SELECT-INTO
@ 2003-11-24 16:02 Marcos Truchado <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Marcos Truchado @ 2003-11-24 16:02 UTC (permalink / raw)
  To: 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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* error in plpgsql-statements.html#PLPGSQL-SELECT-INTO
@ 2003-11-24 17:17 Marcos Truchado <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Marcos Truchado @ 2003-11-24 17:17 UTC (permalink / raw)
  To: 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.







^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-11-24 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-24 16:02 error in plpgsql-statements.html#PLPGSQL-SELECT-INTO Marcos Truchado <[email protected]>
2003-11-24 17:17 error in plpgsql-statements.html#PLPGSQL-SELECT-INTO Marcos Truchado <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox