]> granicus.if.org Git - postgresql/commit
Adjust ExecMakeTableFunctionResult to produce a single all-nulls row
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Sep 2004 17:41:51 +0000 (17:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Sep 2004 17:41:51 +0000 (17:41 +0000)
commitbebaf7061318cbc82c3077d472d09df38626668a
tree9ea7d553fce63670a8e83124d2080c17cc357c85
parentb84788debc08f64a0cb75cbb1059a6b222c51490
Adjust ExecMakeTableFunctionResult to produce a single all-nulls row
when a function that returns a single tuple (not a setof tuple) returns
NULL.  This seems to be the most consistent behavior.  It would have
taken a bit less code to make it return an empty table (zero rows) but
ISTM a non-SETOF function ought always return exactly one row.  Per
bug report from Ivan-Sun1.
src/backend/executor/execQual.c
src/backend/executor/nodeFunctionscan.c