Thread: create tables in empty database (libpq)

create tables in empty database (libpq)

From
Henk Jan Barendregt
Date:
Hello,

When i try to create tables in an empty database,a call to
PQresultstatus gives the following message on the screen :
PQresultstatus() -- pointer to PQresult is null

The database is created with createdb, and connecting to it with
PQsetdb gives no errors. But i can't execute any queries using PQexec.

When i try to acces the database with psql or pgaccess everythinworks
fine. And when i create the tables manualy with psql then i can access
them with libpq.

any suggestions ?

Henk Jan