pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 21:14:40 +0100
Message-ID: <36E42FB0.ABECE2BD@barendregt.xs4all.nl> (raw)

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



view thread (2+ messages)

Message-ID: <36E42FB0.ABECE2BD@barendregt.xs4all.nl>
Permalink:  ../36E42FB0.ABECE2BD@barendregt.xs4all.nl/
Also on:    postgresql.org/message-id/36E42FB0.ABECE2BD@barendregt.xs4all.nl

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: henkjan@barendregt.xs4all.nl
  Subject: Re: create tables in empty database (libpq)
  In-Reply-To: <36E42FB0.ABECE2BD@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