create tables in empty database (libpq)

Поиск
Список
Период
Сортировка
От Henk Jan Barendregt
Тема create tables in empty database (libpq)
Дата
Msg-id 36E4275E.639B14A4@barendregt.xs4all.nl
обсуждение исходный текст
Список 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

В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Ulf Mehlig
Дата:
Сообщение: Re: [INTERFACES] pgaccess: window size and column resizing
Следующее
От: Urban Widmark
Дата:
Сообщение: Re: [INTERFACES] multiple db connections