pgsql: Fix check_sql_fn_retval to allow the case where a SQL function

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix check_sql_fn_retval to allow the case where a SQL function
Дата
Msg-id 20070402184949.DFC9F9FB79E@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix check_sql_fn_retval to allow the case where a SQL function declared to
return void ends with a SELECT, if that SELECT has a single result that is
also of type void.  Without this, it's hard to write a void function that
calls another void function.  Per gripe from Peter.

Back-patch as far as 8.0.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/executor:
        functions.c (r1.91.4.3 -> r1.91.4.4)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/functions.c.diff?r1=1.91.4.3&r2=1.91.4.4)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix check_sql_fn_retval to allow the case where a SQL function
Следующее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Add URL for: o Allow RETURN to return row or record functions