Array elements (urgent help needed)

Поиск
Список
Период
Сортировка
От Akbar Mokhtarani
Тема Array elements (urgent help needed)
Дата
Msg-id Pine.LNX.4.58.0410031950350.32241@noric03.slac.stanford.edu
обсуждение исходный текст
Ответы Re: Array elements (urgent help needed)  (Brett Schwarz <brett_schwarz@yahoo.com>)
Re: Array elements (urgent help needed)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
I am desparate to find a way to access array elements from my c/c++
program. I have stored int and double data as arrays in my tables and need
to retrieve them from the database. I use a binary cursor to store the
query results and PQgetvalue gives me a char* pointer to the storage area
where the data is stored (this is according to the documentation). I have
tried to understand the internal structure of the storage area, but it
changes with data type. I suspect there is a more reliable/elegant way to
get access to the elements. What is the correct way of doing this?

Thanks in advance.

Akbar Mokhtarani



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Akbar Mokhtarani
Дата:
Сообщение: Accessing array elements
Следующее
От: Brett Schwarz
Дата:
Сообщение: Re: Array elements (urgent help needed)