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

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

pgsql-odbc by date

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

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