Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAr60-0002GF-Kx for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Apr 2018 06:06:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fAr5y-0000d8-RH for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Apr 2018 06:06:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAr5y-0000ct-Kt for pgsql-odbc@lists.postgresql.org; Tue, 24 Apr 2018 06:06:30 +0000 Received: from mail01.asahi-net.or.jp ([202.224.55.13]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fAr5s-0004lq-TL for pgsql-odbc@postgresql.org; Tue, 24 Apr 2018 06:06:29 +0000 Received: from [192.168.1.4] (p237001-ipngn200203fukui.fukui.ocn.ne.jp [114.171.140.1]) (Authenticated sender: GQ9H-INUE) by mail01.asahi-net.or.jp (Postfix) with ESMTPA id 3E09359413; Tue, 24 Apr 2018 15:06:18 +0900 (JST) Subject: Re: Registering DSN with odbcconf.exe overwrites the connection attributes with defaults To: Haribabu Kommi References: Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <4c4e601c-c66e-b6ef-ad45-2ea2b0e2b349@dream.email.ne.jp> Date: Tue, 24 Apr 2018 15:06:18 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------234CBA4075F549BE4C7646B2" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------234CBA4075F549BE4C7646B2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------234CBA4075F549BE4C7646B2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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
--------------234CBA4075F549BE4C7646B2--