]> granicus.if.org Git - postgresql/commit
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)
commit47d61a572ff1c03241776b99d979e28affe7aa2a
tree26fecf45e315c5acf7e2be54ff6a27bf2d35ce91
parent51fb9106e05e083f013ac4688e5ceb59ff9c000c
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