Re: BUG #8399: inconsistent input of multidimensional arrays - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #8399: inconsistent input of multidimensional arrays
Date
Msg-id 20140201155043.GI31141@momjian.us
Whole thread Raw
In response to Re: BUG #8399: inconsistent input of multidimensional arrays  (Joe Conway <mail@joeconway.com>)
List pgsql-bugs
On Fri, Jan 31, 2014 at 09:49:56PM -0800, Joe Conway wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 01/31/2014 05:46 PM, Joe Conway wrote:
> > On 01/31/2014 05:11 PM, Bruce Momjian wrote:
> >> Joe, does this sound right?
>
> > Let me take a closer look...
>
> I had forgotten how convoluted the array code is ;-)
>
> Yes, it looks correct to me, although I think I would initialize
> nelems_last[i] to 0 rather than -1.

Thanks for the review.  I went with zero as you suggested.  Applied
patch attached.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

Attachment

pgsql-bugs by date:

Previous
From: Joe Conway
Date:
Subject: Re: BUG #8399: inconsistent input of multidimensional arrays
Next
From: "Paul Watson"
Date:
Subject: