Fix check_sql_fn_retval to allow the case where a SQL function declared to
authorTom Lane <[email protected]>
Mon, 2 Apr 2007 18:49:41 +0000 (18:49 +0000)
committerTom Lane <[email protected]>
Mon, 2 Apr 2007 18:49:41 +0000 (18:49 +0000)
commitd3c0d3ad93c4080db5953e3dbf7da6f9b11f687b
treec5193df4e28e9dba3ea89223f9635e6cda6bde3f
parentf7426291dd649c3c1a237bd43eaacc108475d494
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.
src/backend/executor/functions.c