From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Registering DSN with odbcconf.exe overwrites the connection attributes with defaults
Date: Tue, 24 Apr 2018 15:06:18 +0900
Message-ID: <4c4e601c-c66e-b6ef-ad45-2ea2b0e2b349@dream.email.ne.jp> (raw)
In-Reply-To: <CAJrrPGf4zVF+3myOFXJYPSoN90hOMRWzK9jnQkGp0j4Lt08RYA@mail.gmail.com>
References: <CAJrrPGf4zVF+3myOFXJYPSoN90hOMRWzK9jnQkGp0j4Lt08RYA@mail.gmail.com>
Hi,
On 2018/04/23 18:25, Haribabu Kommi wrote:
> With the following command, the SSLmode of the DSN is defaults to
> disable, even the "prefer" option is provided in the connection
> attributes.
>
> odbcconf.exe /A {CONFIGDSN "PostgreSQL Unicode(x64)"
> "DSN=test3|SSLmode=prefer"}
>
> During the configDSN, first the connection attributes are parsed in
> ParseAttributes function and later all the values are replaced with
> defaults using getCiAllDefaults. Because of this reason, all the
> provided connection options are ignored.
Thanks for the report.
I would take care of this issue.
regards,
Hiroshi Inoue
>
> By changing it as first fill the ci with defaults and later update it
> with connection attributes works fine with connection attributes.
> Patch attached. Am I missing anything?
>
> Regards,
> Hari Babu
> Fujitsu Australia
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: h-inoue@dream.email.ne.jp, kommi.haribabu@gmail.com
Subject: Re: Registering DSN with odbcconf.exe overwrites the connection attributes with defaults
In-Reply-To: <4c4e601c-c66e-b6ef-ad45-2ea2b0e2b349@dream.email.ne.jp>
References: <CAJrrPGf4zVF+3myOFXJYPSoN90hOMRWzK9jnQkGp0j4Lt08RYA@mail.gmail.com> <4c4e601c-c66e-b6ef-ad45-2ea2b0e2b349@dream.email.ne.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