public inbox for [email protected]  
help / color / mirror / Atom feed
From: Halley Pacheco de Oliveira <[email protected]>
To: [email protected]
Subject: PostgreSQL 7.4 Documentation - PL/pgSQL
Date: Tue, 8 Jun 2004 08:37:13 -0300 (ART)
Message-ID: <[email protected]> (raw)

In PL/pgSQL - SQL Procedural Language, 37.6.2. SELECT
INTO, is written:

Here is an example that handles the case where no rows
have been returned:

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;

In the example before this no rows were returned. This
is an example of NULL result, not of NOT FOUND. The 
comment says "-- user entered no homepage".

In "37.8.3.3. Returning Cursors" is written:

<unnamed cursor 1>

But I'm getting;

<unnamed portal 1>

Regards,
Halley


______________________________________________________________________

Participe da pesquisa global sobre o Yahoo! Mail: 
http://br.surveys.yahoo.com/global_mail_survey_br




reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: PostgreSQL 7.4 Documentation - PL/pgSQL
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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