Re: pgsql: Several fixes to array handling in ecpg.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pgsql: Several fixes to array handling in ecpg.
Дата
Msg-id 20140409105018.GF4161@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: pgsql: Several fixes to array handling in ecpg.  (Michael Meskes <meskes@postgresql.org>)
Список 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 по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: pgsql: Several fixes to array handling in ecpg.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Add missing include.