Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group