[HACKERS] Try to fix endless loop in ecpg with informix mode - Mailing list pgsql-hackers

From 高增琦
Subject [HACKERS] Try to fix endless loop in ecpg with informix mode
Date
Msg-id CAFmBtr3eusXV8Fk_sEh32GWhTU4a6bBTCyaq5qpsjx0OoKV2wg@mail.gmail.com
Whole thread Raw
List 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.
Attachment

pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: [HACKERS] Add support for tuple routing to foreign partitions
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: [HACKERS] show "aggressive" or not in autovacuum logs