Fix handling of array of char pointers in ecpglib. When array of char * was used as target for a FETCH statement returning more than one row, it tried to store all the result in the first element. Instead it should dump array of char pointers with right offset, use the address instead of the value of the C variable while reading the array and treat such variable as char **, instead of char * for pointer arithmetic.
Patch by Ashutosh Bapat <[email protected]> Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/91c8c106facadc868308e90dbaca3ac6017be5f0 Modified Files -------------- src/interfaces/ecpg/ecpglib/data.c | 8 ++++++++ src/interfaces/ecpg/ecpglib/execute.c | 9 ++++++++- src/interfaces/ecpg/preproc/type.c | 17 +++++++++++++++-- 3 files changed, 31 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
