Need Info

Поиск
Список
Период
Сортировка
От Shamik Majumder
Тема Need Info
Дата
Msg-id 3C54F380.E1EF3B62@wipro.com
обсуждение исходный текст
Ответы Re: Need Info  (jtv <jtv@xs4all.nl>)
Список pgsql-interfaces
Hi,

I am facing one problem while using the C++ classes provided by the
Postgres to connect to the backend database and execute query.
I am using PgDatabase class to connect to the backend postgres database
and execute query. Now, when I am using the following method of
PgDatabase class, to access the tuples and fields, its always providing
me return values as char *.
        const char* GetValue(int tup_num, int field_num)

My problem is - for my application, I need to have the values back in
their proper format, that means if the datatyoe of one field is integer,

I want to get it back as an integer type and not as a string.

Is there any way in Postgres, to do that ?

Thanks and Regards,
Shamik






Вложения

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

Предыдущее
От: "Jeff Young"
Дата:
Сообщение: timestamp Format on Binary Cursor
Следующее
От: "Yoghini Thevarajah"
Дата:
Сообщение: Help in configuring JDBC driver