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

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

Reply via email to