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

From: frbn <frbn(at)efbs-seafrigo(dot)fr>
To: Debra LaVille <debra(dot)laville(at)digeo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Paul Meisenheimer <Paul(dot)Meisenheimer(at)digeo(dot)com>
Subject: Re: Attempt to connect to database using libpq++ PgDatabase
Date: 2002-09-06 12:35:34
Message-ID: 3D78A116.70204@efbs-seafrigo.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 ?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2002-09-06 13:07:51 Re: Problem with restoring dump (may be tsearch-related)
Previous Message Florian Litot 2002-09-06 12:30:02 pb on installation