pqxx::Connection("dbname=name");

From: "CG" <exai17(at)yahoo(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: pqxx::Connection("dbname=name");
Date: 2002-06-27 15:00:22
Message-ID: aff8uo$556$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Hiroshi Inoue 2002-06-28 00:21:56 Re: [ODBC] Views, Access 2000 and write conflicts
Previous Message Sandro Dentella 2002-06-26 23:26:49 libpgtcl and secured connection