Received: (from news@localhost) by hub.org (8.9.2/8.9.1) id OAA21073 for pgsql-interfaces@postgresql.org; Mon, 8 Mar 1999 14:37:27 -0500 (EST) (envelope-from news) X-Authentication-Warning: hub.org: news set sender to using -f From: Henk Jan Barendregt Subject: create tables in empty database (libpq) Date: Mon, 08 Mar 1999 20:39:10 +0100 Organization: Barendregt Building Message-ID: <36E4275E.639B14A4@barendregt.xs4all.nl> To: pgsql-interfaces@postgreSQL.org 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