]> 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:36 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Apr 2007 18:49:36 +0000 (18:49 +0000)
commit3ac7d76096e31f06b8c485a3d03323071ac4bab2
treedfca7f5db40de612343d0d7f6eac8af7d5149ee8
parent100beb0deac509c8ab8086b72e1ccd0304fb9dd4
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