Check that result tupdesc has exactly 1 column in return_next scalar case.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 4ecd1974377ffb4d6d72874ba14fcd23965b1792
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-11-15T21:48:19Z
Releases: 10.0
Check that result tupdesc has exactly 1 column in return_next scalar case.

This should always be true, but since we're relying on a tuple descriptor
passed from outside pltcl itself, let's check.  Per a gripe from Coverity.

Files

PathChange+/−
src/pl/tcl/pltcl.c modified +4 −0