X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id CFDF211F6C6C for ; Thu, 13 Apr 2006 06:48:01 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -1.639 X-Spam-Level: X-Spam-Status: No, score=-1.639 required=5 tests=[AWL=-0.001, BAYES_00=-2.599, NO_REAL_NAME=0.961] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id 1RGX5NFM552U for ; Thu, 13 Apr 2006 06:47:54 -0300 (ADT) X-Greylist: delayed 00:30:42.416269 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 863FC11F6C2E for ; Thu, 13 Apr 2006 06:47:45 -0300 (ADT) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by svr4.postgresql.org (Postfix) with ESMTP id B6CBD5AF8DE for ; Thu, 13 Apr 2006 09:17:04 +0000 (GMT) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id B3AF110338ED; Thu, 13 Apr 2006 09:17:03 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id dEP3-QF1buTe; Thu, 13 Apr 2006 06:16:54 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id 5292410338EB; Thu, 13 Apr 2006 09:16:57 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000611 ] Empty exception thrown when no password supplied Content-type: text/plain; charset=UTF-8 Message-Id: <20060413091657.5292410338EB@pgfoundry.org> Date: Thu, 13 Apr 2006 09:16:57 +0000 (GMT) X-Archive-Number: 200604/50 X-Sequence-Number: 7577 Bugs item #1000611, was opened at 2006-04-13 09:16 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000611&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Patrick Donelan (patspam) Assigned to: Nobody (None) Summary: Empty exception thrown when no password supplied Initial Comment: Experimental Enhanced Branch psqlODBC 07.03.0260 throws an empty ODBCException when you try to connect without specifying a password in the connection string. I am submitting this as a bug because the non-experimental psqlodbc branch would throw an ODBCException with an exception message along the lines of "no password supplied" which you could use to diagnose the problem. I am running psqlODBC 07.03.0260 under Windows XP. My code is running C# with Visual Studio 2005. Sample code to reproduce: using System.Data.Odbc; // specify connection string without pwd string c = "Driver={PostgreSQL+};database=mydb;server=localhost;port=5432;sslmode=prefer;uid=myuid;readonly=0;protocol=6.4;fakeoidindex=0;showoidcolumn=0;rowversioning=0;showsystemtables=0;fetch=100;socket=8192;unknownsizes=0;maxvarcharsize=254;maxlongvarcharsize=8190;debug=0;commlog=1;optimizer=1;ksqo=1;usedeclarefetch=0;textaslongvarchar=1;unknownsaslongvarchar=0;boolsaschar=0;parse=0;cancelasfreestmt=0;extrasystableprefixes=dd_;lfconversion=1;updatablecursors=0;disallowpremature=0;trueisminus1=0;bi=0;byteaaslongvarbinary=0;useserversideprepare=0;lowercaseidentifier=0"; cnDB.Open(); Cheers, Patrick ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000611&group_id=1000125