From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Rick Hair <rhair@bowmansystems.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Username and password from DSN being overwritten (fix
Date: Wed, 18 Oct 2006 01:13:45 +0900
Message-ID: <45350139.4080408@tpf.co.jp> (raw)
In-Reply-To: <005301c6f176$4e4111c0$1103000a@RickHair>
References: <005301c6f176$4e4111c0$1103000a@RickHair>
Rick Hair wrote:
> Hi all,
>
> I ran into a problem recently trying to use the latest CVS version of the
> ODBC driver with Business Objects XI Release 2. The username and password
> specified for a connection in the ODBC setup panel were being ignored by the
> driver. I discovered that after some recent changes to the make_string()
> function in misc.c, the DSN defaults were always being overwritten by
> whatever username and password were passed to PGAPI_Connect(), even if they
> were empty strings.
>
> Below is a (very small) patch to connection.c to work around the issue.
>
> ! if (cbUID > 0)
>
> ! make_string(szUID, cbUID, ci->username, sizeof(ci->username));
>
> ! if (cbAuthStr > 0)
>
> ! make_string(szAuthStr, cbAuthStr, ci->password,
> sizeof(ci->password));
>
The above patch seems to be wrong because cbUID(cvAuthStr) can be SQL_NTS.
OK I would take care of this case.
Please try the snapshot dll at
http://www.geocities.jp/inocchichichi/psqlodbc/index.html
.
regards,
Hiroshi Inoue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, rhair@bowmansystems.com
Subject: Re: Username and password from DSN being overwritten (fix
In-Reply-To: <45350139.4080408@tpf.co.jp>
References: <005301c6f176$4e4111c0$1103000a@RickHair> <45350139.4080408@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox