array expression NULL fix [was: [HACKERS] odd behavior/possible bug]

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: array expression NULL fix [was: [HACKERS] odd behavior/possible bug]
Date: 2003-07-24 22:31:48
Message-ID: 3F205E54.9070804@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)com> writes:
>>That probably makes good sense, at least until we can deal with NULL
>>elements. Would that patch count as a bug fix?
>
> Either one would count as a bug fix IMHO. Anyone else have an opinion
> on which to do?

Here's a patch that replaces the ERROR with a NULL return value when an
element in an array expression is NULL.

Joe

Attachment Content-Type Size
array-null-fix.01.patch text/plain 1.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marcus Brger 2003-07-24 22:32:04 Re: php with postgres
Previous Message Tom Lane 2003-07-24 22:15:23 Re: this is in plain text (row level locks)

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-07-25 04:47:34 Re: UPDATED Patch for adding DATACUBE operator
Previous Message Joe Conway 2003-07-24 21:41:29 Re: odd behavior/possible bug