Registering DSN with odbcconf.exe overwrites the connectionattributes with defaults - Mailing list pgsql-odbc

From Haribabu Kommi
Subject Registering DSN with odbcconf.exe overwrites the connectionattributes with defaults
Date
Msg-id CAJrrPGf4zVF+3myOFXJYPSoN90hOMRWzK9jnQkGp0j4Lt08RYA@mail.gmail.com
Whole thread Raw
Responses Re: Registering DSN with odbcconf.exe overwrites the connectionattributes with defaults  ("Inoue, Hiroshi" <h-inoue@dream.email.ne.jp>)
List pgsql-odbc
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.

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
Attachment

pgsql-odbc by date:

Previous
From: Roberto Familia
Date:
Subject: ODBC - psqlodbc-7.2.3
Next
From: Fernando Luna
Date:
Subject: RE: [ODBC] Question regarding accessing only tables to which the user has access