pgsql: Check that result tupdesc has exactly 1 column in return_next sc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Check that result tupdesc has exactly 1 column in return_next sc
Date: 2016-11-15 21:48:35
Message-ID: E1c6lal-0004pJ-4n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4ecd1974377ffb4d6d72874ba14fcd23965b1792

Modified Files
--------------
src/pl/tcl/pltcl.c | 4 ++++
1 file changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-11-16 07:06:52 pgsql: Build HTML documentation using XSLT stylesheets by default
Previous Message Robert Haas 2016-11-15 21:36:03 pgsql: Reserve zero as an invalid DSM handle.