pgsql: Fix handling of array of char pointers in ecpglib.
В списке pgsql-committers по дате отправления:
| От | Michael Meskes |
|---|---|
| Тема | pgsql: Fix handling of array of char pointers in ecpglib. |
| Дата | |
| Msg-id | E1Whda9-0004AM-01@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
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> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/8d6a07fa01cece1bd3508a81e59c0c0cbc0bb867 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(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера