create tables in empty database (libpq)

From: Henk Jan Barendregt <henkjan(at)barendregt(dot)xs4all(dot)nl>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: create tables in empty database (libpq)
Date: 1999-03-08 20:14:40
Message-ID: 36E42FB0.ABECE2BD@barendregt.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Urban Widmark 1999-03-08 20:28:27 Re: [INTERFACES] multiple db connections
Previous Message Henk Jan Barendregt 1999-03-08 19:39:10 create tables in empty database (libpq)