PL/pgSQL: FOUND not set by EXECUTE?

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема PL/pgSQL: FOUND not set by EXECUTE?
Дата
Msg-id 40B1C68C.6040700@blakjak.sytes.net
обсуждение исходный текст
Ответы Re: PL/pgSQL: FOUND not set by EXECUTE?  (Rory Campbell-Lange <rory@campbell-lange.net>)
Список pgsql-general
Hello all,

I've discovered that in 7.4.2 PL/pgSQL, the FOUND variable is not at all
affected by use of the EXECUTE command, even if the statement you pass
to EXECUTE would set FOUND to true when run directly.  The documentation
doesn't really point this out, and in my opinion, it's an unintuitive
behaviour.  Why would executing the command dynamically make a
difference to how FOUND is treated?  The statement still "happens" in
the end, additional query plan or no.

Could someone please clarify?

Regards,

Brendan Jurd



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: dump / restore questions
Следующее
От: Matthias Nagl
Дата:
Сообщение: Combining several rows