[ psqlodbc-Bugs-1000611 ] Empty exception thrown when no password supplied
am 13.04.2006 11:16:57 von noreplyBugs item #1000611, was opened at 2006-04-13 09:16
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=10006 11&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=54 32;sslmode=prefer;uid=myuid;readonly=0;protocol=6.4;fakeoidi ndex=0;showoidcolumn=0;rowversioning=0;showsystemtables=0;fe tch=100;socket=8192;unknownsizes=0;maxvarcharsize=254;maxlon gvarcharsize=8190;debug=0;commlog=1;optimizer=1;ksqo=1;usede clarefetch=0;textaslongvarchar=1;unknownsaslongvarchar=0;boo lsaschar=0;parse=0;cancelasfreestmt=0;extrasystableprefixes= dd_;lfconversion=1;updatablecursors=0;disallowpremature=0;tr ueisminus1=0;bi=0;byteaaslongvarbinary=0;useserversideprepar e=0;lowercaseidentifier=0";
cnDB.Open();
Cheers,
Patrick
------------------------------------------------------------ ----------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=10006 11&group_id=1000125
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster