]> granicus.if.org Git - postgresql/commit
Defend against possible crash if a plpython function does not specify names
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Apr 2009 16:59:43 +0000 (16:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Apr 2009 16:59:43 +0000 (16:59 +0000)
commitcd331e4b845f9206aa89e4f31bb75a040fef87ba
tree136ad3b7a0ebfa337e8473372a97f61a3ebdd3ba
parentaa38153d22df190397f851cfbd4506f31f44557e
Defend against possible crash if a plpython function does not specify names
for its arguments.  Also add a regression test, since someone apparently
changed every single plpython test case to use only named parameters; else
we'd have noticed this sooner.

Euler Taveira de Oliveira, per a report from Alvaro
src/pl/plpython/expected/plpython_function.out
src/pl/plpython/expected/plpython_test.out
src/pl/plpython/plpython.c
src/pl/plpython/sql/plpython_function.sql
src/pl/plpython/sql/plpython_test.sql