Re: PLPGSQL OID Bug

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kevin McArthur <Kevin(at)StormTide(dot)ca>, pgsql-patches(at)postgresql(dot)org
Subject: Re: PLPGSQL OID Bug
Date: 2005-07-28 05:51:45
Message-ID: 42E87271.4090202@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
> 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.

The only reference to `isnull' in the body of exec_cast_value() is:

if (!*isnull)
{
/* ... */
}

i.e. it is never referenced again, let alone written through. Barring
any objections I'll apply the attached patch tomorrow.

-Neil

Attachment Content-Type Size
plpgsql_cast_isnull-1.patch text/x-patch 6.7 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Gavin Sherry 2005-07-28 06:00:24 Re: [HACKERS] Duplicate object names in GRANT
Previous Message Tom Lane 2005-07-28 04:41:14 Re: AIX - pgport/contrib resolution