]> granicus.if.org Git - postgresql/commit
Fix bugs in pltcl's new return_null command: it was liable to go belly up
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Feb 2001 03:26:40 +0000 (03:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Feb 2001 03:26:40 +0000 (03:26 +0000)
commita2dafc64165fd1ae6c9f143552cb62d61c4bf819
tree7f8c71d2ec8c30069b533fc974a5b8ad286c4cc1
parent60d1d671a8a0743f4701ae3976da40c010adb941
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.
src/pl/tcl/pltcl.c