Re: Attempt to connect to database using libpq++ PgDatabase

Поиск
Список
Период
Сортировка
От frbn
Тема Re: Attempt to connect to database using libpq++ PgDatabase
Дата
Msg-id 3D78A116.70204@efbs-seafrigo.fr
обсуждение исходный текст
Ответ на Attempt to connect to database using libpq++ PgDatabase class fails because CONNECTION_BAD  ("Debra LaVille" <debra.laville@digeo.com>)
Список pgsql-general
Debra LaVille a écrit:
> I am porting code from Red Hat Linux to Windows 2000 and can not connect to a
> my database using libpq++.


> I can not access the database from my application using libpq++ (CONNECTION_BAD):
>
>     #include <stdio.h>
>     #include <iostream>
>     #include <string>
>     #include "libpq++\pgdatabase.h"
>
>     using namespace std;
>
>     int main(int argc, char* argv[])
>     {
>         PgDatabase myDB("dbname=mediadb user=mediadbuser");
>
>         if ( myDB.ConnectionBad() )
>         {

what does postgres's errlog says ?


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

Предыдущее
От: Florian Litot
Дата:
Сообщение: pb on installation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 7.3b1 installation