Re: NonNullValue() error in 8.4 - Mailing list pgsql-novice

From Michael Glaesemann
Subject Re: NonNullValue() error in 8.4
Date
Msg-id 12764303-F2E8-44FC-8203-4E0FD8E45927@seespotcode.net
Whole thread Raw
In response to Re: NonNullValue() error in 8.4  (Josh Kupershmidt <schmiddy@gmail.com>)
Responses Re: NonNullValue() error in 8.4  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
On Oct 12, 2010, at 12:53 , Josh Kupershmidt wrote:

> On Tue, Oct 12, 2010 at 11:28 AM, Rebecca Cooper
> <rebecca.cooper@newforestnpa.gov.uk> wrote:
>> We have recently upgraded to 8.4 from 8.3 and are experiencing problems with
>> a client application.  The log files record multiple entries of -
>>
>> SELECT NonNullValue(attname) AS has_oid FROM pg_attribute
>>
>> ERROR:  function nonnullvalue(name) does not exist at character 664
>>
>

> to use a CASE statement like so:
>
>  SELECT (CASE WHEN attname IS NULL THEN true ELSE false END) AS
> has_oid FROM pg_attribute;
>
> which should work fine on 8.4.

Or just "SELECT attname IS NULL AS has_oid"

Michael Glaesemann
grzm seespotcode net




pgsql-novice by date:

Previous
From: Josh Kupershmidt
Date:
Subject: Re: NonNullValue() error in 8.4
Next
From: Tom Lane
Date:
Subject: Re: NonNullValue() error in 8.4