pgsql: Fix check_sql_fn_retval to allow the case where a SQL function - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix check_sql_fn_retval to allow the case where a SQL function
Date
Msg-id 20070402184941.83EFF9FB791@postgresql.org
Whole thread Raw
List 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_1_STABLE

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

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

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix check_sql_fn_retval to allow the case where a SQL function
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix check_sql_fn_retval to allow the case where a SQL function