Dedect unknown database in 08.01.0100 and Postgres 8.1

From: "Andrus" <eetasoft(at)online(dot)ee>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Dedect unknown database in 08.01.0100 and Postgres 8.1
Date: 2005-11-08 18:26:24
Message-ID: dkqql6$2bgo$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

I need to dedect the case where database specified in connection string does
not exist.

Earlier odbc driver with Postgres 8.0 returns special error text in this
case:

FATAL: database "foo" does not exist

New ODBC driver with Postgres 8.1 returns the same error in all cases:

Could not connect to the server

How to determine is this error caused by non-existing database in cluster or
by other cause ?

Andrus

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Tom Lane 2005-11-08 19:02:06 Re: Dedect unknown database in 08.01.0100 and Postgres 8.1
Previous Message noreply 2005-11-08 17:08:16 [ psqlodbc-Bugs-1000417 ] odbc_lib_connect() returns "Specified driver could not be loaded due to system error 182 (PostgreSQL ANSI)"