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

From Henk Jan Barendregt
Subject create tables in empty database (libpq)
Date
Msg-id 36E4275E.639B14A4@barendregt.xs4all.nl
Whole thread Raw
List pgsql-interfaces
Hello,

I'm trying to create tables with libpq in an empty database.

The database named 'cash' is created with 'createdb cash'.
Then connecting with libpq is ok but i can't execute any
queries. After procssing a query PQresultStatus gives the
error message :
   PQresultStatus() -- pointer to PQresult is null

Tying to disconnect the database with PQfinish gives a
segmentation fault.

Any suggestions how to fix this ?

Thanks in advance,

Henk Jan

pgsql-interfaces by date:

Previous
From: Ulf Mehlig
Date:
Subject: Re: [INTERFACES] pgaccess: window size and column resizing
Next
From: Urban Widmark
Date:
Subject: Re: [INTERFACES] multiple db connections