Adjust ExecMakeTableFunctionResult to produce a single all-nulls row
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execQual.c | modified | +74 −39 |
| src/backend/executor/nodeFunctionscan.c | modified | +4 −11 |