Re: PLPGSQL OID Bug - Mailing list pgsql-patches

From Tom Lane
Subject Re: PLPGSQL OID Bug
Date
Msg-id 14377.1122519214@sss.pgh.pa.us
Whole thread Raw
In response to Re: PLPGSQL OID Bug  (Neil Conway <neilc@samurai.com>)
Responses Re: PLPGSQL OID Bug  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> BTW, is there a reason why exec_cast_value() and friends take a bool *,
> rather than a bool?

I think the reason is that it's both an input and an output parameter,
to handle the case where the cast function returns NULL.

This is obviously a pretty bug-prone convention, however, and so maybe
we should rethink it.

            regards, tom lane

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: Re: PLPGSQL OID Bug
Next
From: Tom Lane
Date:
Subject: Re: AIX - pgport/contrib resolution