Prevent segfault in expand_tuple with no missing values

Commit 16828d5c forgot to check that it had a set of missing values
before trying to retrieve a value from it.

An additional query to add coverage for this code is added to the
regression test.

Per bug report from Andreas Seltenreich.



Modified Files
src/backend/access/common/heaptuple.c      |  2 +-
src/test/regress/expected/fast_default.out | 35 ++++++++++++++++++++++++++++++
src/test/regress/sql/fast_default.sql      | 14 ++++++++++++
3 files changed, 50 insertions(+), 1 deletion(-)

Reply via email to