pqxx::Connection("dbname=name"); - Mailing list pgsql-interfaces

From CG
Subject pqxx::Connection("dbname=name");
Date
Msg-id aff8uo$556$1@news.hub.org
Whole thread Raw
Responses Re: pqxx::Connection("dbname=name");
List pgsql-interfaces
Hi,

i tried to create a pqxx::Connection with an NOT existing dbserver and my
program aborts.

Is this correct?

try
{   Connection c("dbname=wrongname"
}
catch(const exception &ec)
{   cout << " Connection failed! " << endl;
}

Why does it not catch in my program?

Thanx in advance!

CG






pgsql-interfaces by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: [ODBC] Views, Access 2000 and write conflicts
Next
From: jtv
Date:
Subject: Re: pqxx::Connection("dbname=name");