Fix handling of array of char pointers in ecpglib.

Michael Meskes <meskes@postgresql.org>

Commit: fb66e88cf8f7ce7abf27cff1570a703e1cb8f562
Author: Michael Meskes <meskes@postgresql.org>
Date: 2014-05-06T11:20:22Z
Releases: 9.1.14
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 <ashutosh.bapat@enterprisedb.com>

Files