Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: plpgsql_cast_isnull-1.patch
Description: text/x-patch (6.7 KB)

In response to

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group