Thread: pgsql/src/pl/tcl pltcl.c

pgsql/src/pl/tcl pltcl.c

From
Tom Lane
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/02/15 22:26:40

Modified files:
    src/pl/tcl     : pltcl.c

Log message:
    Fix bugs in pltcl's new return_null command: it was liable to go belly up
    if the return datatype's input converter was at all strict, because the
    converter would get called on junk data when returning NULL.  Also
    ensure that it gives an error rather than coredumping if someone tries
    to use it in a trigger function.