"Nicolas Addington" <adding@math.wisc.edu> writes:
> PostgreSQL version: 8.0
tsk, tsk --- it's not 8.0. Yet.
> When a pl/perl trigger for an insert event changes an integer column in the
> new row to null, it fails. Interestingly, it doesn't have a problem if the
> column was originally null.
Looks like we have to check *both* SvOK() and SvTYPE() everywhere.
Sigh. Done --- thanks for the report.
regards, tom lane