Re: pgsql: Several fixes to array handling in ecpg. - Mailing list pgsql-committers

From Andres Freund
Subject Re: pgsql: Several fixes to array handling in ecpg.
Date
Msg-id 20140409105018.GF4161@awork2.anarazel.de
Whole thread Raw
In response to Re: pgsql: Several fixes to array handling in ecpg.  (Michael Meskes <meskes@postgresql.org>)
List pgsql-committers
On 2014-04-09 12:46:35 +0200, Michael Meskes wrote:
> > > Several fixes to array handling in ecpg.
> >
> > What's actually fixed by this?
>
> There were a couple of reports that data got filled into array incorrectly and at least some of those were fixed by
thepatches. 

It'd be useful to describe that in the commit...

> > The patch, or at least the comments, don't look entirely finished:
> > +       /*
> > +        * If siz i.e. the size of structure of which this variable is part of,
> > +        * that gives the offset to the next element, if required
> > +        */
>
> Not sure what you're trying to tell me here, other than that the wording is unclear.

To me that looks like somebody tried to rewrite a comment and stopped
somewhere in the middle. I don't think anybody trying to read that code
in the future is going to understand it.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-committers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: pgsql: Several fixes to array handling in ecpg.
Next
From: Robert Haas
Date:
Subject: pgsql: Add missing include.