create tables in empty database (libpq)

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

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

Предыдущее
От: "John Frailey"
Дата:
Сообщение: Re: [INTERFACES] multiple db connections
Следующее
От: Sergio
Дата:
Сообщение: Re: [INTERFACES] row count