]> 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:29 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Apr 2007 18:49:29 +0000 (18:49 +0000)
commit9a527f18488cb336b39ce86520dd25e438a59144
treee66e796d059b0c9cef93709f893875ba742344af
parentcac01fc0380662a68264695b43870074d1257822
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