Fix things so that you can still do "select foo()" where foo is a SQL
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execQual.c | modified | +27 −7 |
| src/backend/executor/functions.c | modified | +3 −3 |
| src/test/regress/expected/rangefuncs.out | modified | +67 −0 |
| src/test/regress/sql/rangefuncs.sql | modified | +34 −0 |