create tables in empty database (libpq) - Mailing list pgsql-interfaces

From Henk Jan Barendregt
Subject create tables in empty database (libpq)
Date
Msg-id 36E42FB0.ABECE2BD@barendregt.xs4all.nl
Whole thread Raw
List pgsql-interfaces
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

pgsql-interfaces by date:

Previous
From: "John Frailey"
Date:
Subject: Re: [INTERFACES] multiple db connections
Next
From: Sergio
Date:
Subject: Re: [INTERFACES] row count