PostgreSQL 7.4 Documentation - PL/pgSQL

Поиск
Список
Период
Сортировка
От Halley Pacheco de Oliveira
Тема PostgreSQL 7.4 Documentation - PL/pgSQL
Дата
Msg-id 20040608113713.66993.qmail@web52709.mail.yahoo.com
обсуждение исходный текст
Список pgsql-docs
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

В списке pgsql-docs по дате отправления:

Предыдущее
От: Mark Harrison
Дата:
Сообщение: Application Note: Integrating Posgresql queries into an event loop.
Следующее
От: Halley Pacheco de Oliveira
Дата:
Сообщение: PostgreSQL 7.4 Documentation - The Information Schema