From: Henk Jan Barendregt <henkjan@barendregt.xs4all.nl>
To: pgsql-interfaces@postgreSQL.org
Subject: create tables in empty database (libpq)
Date: Mon, 08 Mar 1999 20:39:10 +0100
Message-ID: <36E4275E.639B14A4@barendregt.xs4all.nl> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: henkjan@barendregt.xs4all.nl
Subject: Re: create tables in empty database (libpq)
In-Reply-To: <36E4275E.639B14A4@barendregt.xs4all.nl>
References: <36E4275E.639B14A4@barendregt.xs4all.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox