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 19:39:10
Message-ID: 36E4275E.639B14A4@barendregt.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Henk Jan Barendregt 1999-03-08 20:14:40 create tables in empty database (libpq)
Previous Message Michael Meskes 1999-03-08 19:34:42 Re: [INTERFACES] Counting updates with libpq