| От | Grzegorz Jaśkiewicz |
|---|---|
| Тема | Re: array_agg and libpq(xx) |
| Дата | |
| Msg-id | 2f4958ff0903191528i46ad4bcld6ae422e2a6b2f6d@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: array_agg and libpq(xx) (John R Pierce <pierce@hogranch.com>) |
| Список | pgsql-general |
2009/3/19 John R Pierce <pierce@hogranch.com>: > pgResult = PQexec(pgConn, "select array['123','456','abc','def'];"); > pgarray = PQgetvalue(pgResult,0,0); > > will return a pointer to the ARRAY in postgres format as defined by the > typsend/recieve internal functions for the ARRAY type. you would need to > walk this and copy the strings comprising the array to your own managed > storage (malloc, or whatever) prior to calling PQclear(pgResult). I'm > trying to find the docs on what the typsend format for ARRAY looks like and > failing. Clearly looking like libpqq(xx) are missing that functionality built in to protocol/api... -- GJ
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера