Re: Verifying a timestamp is null or in the past

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: Verifying a timestamp is null or in the past
Дата
Msg-id 4FDF1D7F-9DE8-4D2F-A191-B0C0499CE82B@yahoo.com
обсуждение исходный текст
Ответ на Re: Verifying a timestamp is null or in the past  (Ondrej Ivanič <ondrej.ivanic@gmail.com>)
Ответы Re: Verifying a timestamp is null or in the past  (Ondrej Ivanič <ondrej.ivanic@gmail.com>)
Список pgsql-general
On Jan 2, 2012, at 16:46, Ondrej Ivanič <ondrej.ivanic@gmail.com> wrote:

Hi,

On 2 January 2012 03:26, Raymond O'Donnell <rod@iol.ie> wrote:
And also - does PERFORM works with FOUND?

Not sure what you mean - can you elaborate?

No, perform (and execute) doesn't populate 'found' variable:
http://www.postgresql.org/docs/9.0/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS

You have to use something like this:
get diagnostics rr = row_count;


--
Ondrej Ivanic
(ondrej.ivanic@gmail.com)



Yes, PERFORM does populate FOUND.

From the documentation you just linked to....

  • PERFORM statement sets FOUND true if it produces (and discards) one or more rows, false if no row is produced.



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Adding German Character Set to PostgresSQL
Следующее
От: Hannes Erven
Дата:
Сообщение: Re: Adding German Character Set to PostgresSQL