Fix things so that you can still do "select foo()" where foo is a SQL
commit3e9a1d3495e71b288d12d0356e9e072ec07361fd
authortgl <tgl>
Thu, 11 Jun 2009 17:25:39 +0000 (11 17:25 +0000)
committertgl <tgl>
Thu, 11 Jun 2009 17:25:39 +0000 (11 17:25 +0000)
treeab088c58cdfa5e5f8ee4f13c115d0f15932936c8
parent466c8eef05230b105a24f41ffbd3941721906a56
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