Re: Error in PQsetvalue

Поиск
Список
Период
Сортировка
От Andrew Chernow
Тема Re: Error in PQsetvalue
Дата
Msg-id 4DE99A35.4030005@esilo.com
обсуждение исходный текст
Ответ на Re: Error in PQsetvalue  (Andrew Chernow <ac@esilo.com>)
Ответы Re: Error in PQsetvalue  (Merlin Moncure <mmoncure@gmail.com>)
Re: Error in PQsetvalue  (Pavel Golub <pavel@microolap.com>)
Список pgsql-hackers
On 6/3/2011 10:26 PM, Andrew Chernow wrote:
>
>>> I disagree -- I think the fix is a one-liner. line 446:
>>> if (tup_num == res->ntups&& !res->tuples[tup_num])
>>>
>>> should just become
>>> if (tup_num == res->ntups)
>>>
>>> also the memset of the tuple slots when the slot array is expanded can
>>> be removed. (in addition, the array tuple array expansion should
>>> really be abstracted, but that isn't strictly necessary here).
>>>
>>
>> All true. This is a cleaner fix to something that was in fact broken ;) You want
>
> Attached a patch that fixes the OP's issue. PQsetvalue now uses pqAddTuple to
> grow the tuple table and has removed the remnants of an older idea that caused
> the bug.
>

Sorry, I attached the wrong patch.  Here is the correct one.

--
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Chernow
Дата:
Сообщение: Re: Error in PQsetvalue
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Pull up aggregate subquery