views:

98

answers:

0

Hi everyone!

I'm using the libpq library in C to accessing my PostgreSQL database. So, when I do res = PQexec(conn, "SELECT point FROM test_point3d"); I don't know how to convert the PGresult I got to my custom data type.

I know I can use the PQgetValue function, but again I don't know how to convert the returning string to my custom data type.

Any suggestion?

Thanks in advice.