]> git.ipfire.org Git - thirdparty/postgresql.git/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:41 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Apr 2007 18:49:41 +0000 (18:49 +0000)
commit40d7f86074fc3419792229d7fda08a20703f2818
tree8c7745e60ef7d510e8200858a782a999f7ec9115
parent368cc140d97037b57167ed21ff1438e2057020df
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