pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
create tables in empty database (libpq)
2+ messages / 1 participants
[nested] [flat]

* create tables in empty database (libpq)
@ 1999-03-08 19:39  Henk Jan Barendregt <henkjan@barendregt.xs4all.nl>
  0 siblings, 0 replies; 2+ messages in thread

From: Henk Jan Barendregt @ 1999-03-08 19:39 UTC (permalink / raw)
  To: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* create tables in empty database (libpq)
@ 1999-03-08 20:14  Henk Jan Barendregt <henkjan@barendregt.xs4all.nl>
  0 siblings, 0 replies; 2+ messages in thread

From: Henk Jan Barendregt @ 1999-03-08 20:14 UTC (permalink / raw)
  To: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1999-03-08 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-03-08 19:39 create tables in empty database (libpq) Henk Jan Barendregt <henkjan@barendregt.xs4all.nl>
1999-03-08 20:14 create tables in empty database (libpq) Henk Jan Barendregt <henkjan@barendregt.xs4all.nl>

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