X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6AF5DD7AEE for ; Tue, 8 Nov 2005 14:26:52 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 74356-08 for ; Tue, 8 Nov 2005 18:26:50 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 147E6D7A05 for ; Tue, 8 Nov 2005 14:26:50 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id A6C3231059; Tue, 8 Nov 2005 19:26:50 +0100 (MET) From: "Andrus" X-Newsgroups: pgsql.interfaces.odbc Subject: Dedect unknown database in 08.01.0100 and Postgres 8.1 Date: Tue, 8 Nov 2005 20:26:24 +0200 Organization: Hub.Org Networking Services Lines: 20 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.561 required=5 tests=[AWL=0.561] X-Spam-Score: 0.561 X-Spam-Level: X-Archive-Number: 200511/78 X-Sequence-Number: 6315 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