Re: problem connecting with libpq++ interface

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem connecting with libpq++ interface
Дата
Msg-id 17713.971149878@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem connecting with libpq++ interface  ("Deniz Hastorun" <denizh@itu.edu.tr>)
Список pgsql-novice
"Deniz Hastorun" <denizh@itu.edu.tr> writes:
>  Error returned:ERROR: PQconnectdb() - Missing '=' after 'template1' in
> conninfo

PQconnectdb doesn't take a simple database name as argument; it takes
a string containing keyword=value pairs.  The correct argument would
be something like "dbname=template1".  See
http://www.postgresql.org/users-lounge/docs/7.0/postgres/libpq-chapter.htm#AEN22236

If you see anyplace in current documentation that indicates differently,
that's a documentation error --- please let us know about it!

            regards, tom lane

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

Предыдущее
От: "Deniz Hastorun"
Дата:
Сообщение: problem connecting with libpq++ interface
Следующее
От: Greger Haga
Дата:
Сообщение: Re: Thanks...and then the question:Architecture.