Re: How can I retrieve double or int data type for libpq

2018-06-12 Thread Laurenz Albe
a wrote: > I wanna use C library to connect pgsql server and I got 2 questions: This is all well documented in https://www.postgresql.org/docs/current/static/libpq.html > 1, If I can fetch a row's data instead of using PQgetvalue? PGgetvalue *is* the way to fetch the row's data. There is no

How can I retrieve double or int data type for libpq

2018-06-12 Thread a
Hi I wanna use C library to connect pgsql server and I got 2 questions: 1, If I can fetch a row's data instead of using PQgetvalue? 2, PQgetvalue will return all data as text, I would have to convert them into the relative data type, is there a way of getting data by its original format?