postgresql/src/pl
Tom Lane b4cc35fbb7 Tighten coding for non-composite case in plperl's return_next.
Coverity complained about this code's practice of using scalar variables
as single-element arrays.  While that's really just nitpicking, it probably
is more readable to declare them as arrays, so let's do that.  A more
important point is that the code was just blithely assuming that the
result tupledesc has exactly one column; if it doesn't, we'd likely get
a crash of some sort in tuplestore_putvalues.  Since the tupledesc is
manufactured outside of plperl, that seems like an uncomfortably long
chain of assumptions.  We can nail it down at little cost with a sanity
check earlier in the function.
2017-07-31 11:33:46 -04:00
..
plperl Tighten coding for non-composite case in plperl's return_next. 2017-07-31 11:33:46 -04:00
plpgsql Translation updates 2017-07-10 11:53:55 -04:00
plpython Translation updates 2017-07-10 11:53:55 -04:00
tcl Translation updates 2017-07-10 11:53:55 -04:00
Makefile