Fix check_sql_fn_retval to allow the case where a SQL function declared to
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Apr 2007 18:49:49 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Apr 2007 18:49:49 +0000 (18:49 +0000)
commitdb392693be152432b727dea0148e0063d2606faf
tree76886208c9fd0dc0b0c53e03bef6fb05d3d5249f
parentcc4fce63785a5fddd6e44d79dc19c332d7279114
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