Fix things so that you can still do "select foo()" where foo is a SQL
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Jun 2009 17:25:39 +0000 (17:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Jun 2009 17:25:39 +0000 (17:25 +0000)
commit09a208db005bd6cef740cea1aef45f7ba5345ff3
tree577130dc244017d232dff76cd7953a6814524c96
parent8ac1e84376e5f56be480e49f1b0a6bf47fedf08c
Fix things so that you can still do "select foo()" where foo is a SQL
function returning setof record.  This used to work, more or less
accidentally, but I had broken it while extending the code to allow
materialize-mode functions to be called in select lists.  Add a regression
test case so it doesn't get broken again.  Per gripe from Greg Davidson.
src/backend/executor/execQual.c
src/backend/executor/functions.c
src/test/regress/expected/rangefuncs.out
src/test/regress/sql/rangefuncs.sql