Re: libECPG: Warning: get descriptor: 7.1 and 7.2 arenot

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libECPG: Warning: get descriptor: 7.1 and 7.2 arenot
Дата
Msg-id 649.1002551700@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libECPG: Warning: get descriptor: 7.1 and 7.2 arenot  (Christof Petig <christof@petig-baender.de>)
Список pgsql-interfaces
Christof Petig <christof@petig-baender.de> writes:
> IIRC the list of descriptor types is terminated by ECPGd_EODT. So the new
> library can't figure out where the old code's argument stop.
> Fix: put ECPGd_cardinality behind ECPGd_EODT.
> I reordered them because of logical considerations, maybe we should weight
> binary compatibility more than beautiful-sortedness of enum values.

Is that a safe fix?  If there are any places that assume that ECPGd_EODT
is the largest value of this enum type (eg, for sizing arrays) then
I think you've got a problem.
        regards, tom lane


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

Предыдущее
От: "Arsalan Zaidi"
Дата:
Сообщение: Re: java.lang.OutOfMemory Exception with a large number of inserts
Следующее
От:
Дата:
Сообщение: mod_auth_pgsql