Re: Registering DSN with odbcconf.exe overwrites the connection attributes with defaults

From: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
To: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Registering DSN with odbcconf.exe overwrites the connection attributes with defaults
Date: 2018-04-24 06:06:18
Message-ID: 4c4e601c-c66e-b6ef-ad45-2ea2b0e2b349@dream.email.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Tony Sullivan 2018-04-24 12:58:59 bigint disparity between two installations
Previous Message Fernando Luna 2018-04-23 17:36:36 RE: [ODBC] Question regarding accessing only tables to which the user has access