[HACKERS] Try to fix endless loop in ecpg with informix mode

Поиск
Список
Период
Сортировка
От 高增琦
Тема [HACKERS] Try to fix endless loop in ecpg with informix mode
Дата
Msg-id CAFmBtr3eusXV8Fk_sEh32GWhTU4a6bBTCyaq5qpsjx0OoKV2wg@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

I tried some tests with ecpg informix mode.
When trying to store float data into a integer var, I got endless loop.

The reason is:
In informix mode, ecpg can accept
string form of float number when processing query result.
During checking the string form of float number, it seems
that ecpg forgot to skip characters after '.'.
Then outer loop will never stop because it hopes to see '\0'.

The first patch will reproduce the problem in ecpg's regress test.
The second patch tries to fix it in simple way.
Вложения

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

Предыдущее
От: Etsuro Fujita
Дата:
Сообщение: Re: [HACKERS] Add support for tuple routing to foreign partitions
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: [HACKERS] show "aggressive" or not in autovacuum logs