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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix check_sql_fn_retval to allow the case where a SQL function
Date: 2007-04-02 18:49:36
Message-ID: 20070402184936.601C79FB79F@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_2_STABLE

Modified Files:
--------------
pgsql/src/backend/executor:
functions.c (r1.108.2.1 -> r1.108.2.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/functions.c.diff?r1=1.108.2.1&r2=1.108.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-04-02 18:49:41 pgsql: Fix check_sql_fn_retval to allow the case where a SQL function
Previous Message Tom Lane 2007-04-02 18:49:29 pgsql: Fix check_sql_fn_retval to allow the case where a SQL function