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

From: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Registering DSN with odbcconf.exe overwrites the connection attributes with defaults
Date: 2018-04-23 09:25:53
Message-ID: CAJrrPGf4zVF+3myOFXJYPSoN90hOMRWzK9jnQkGp0j4Lt08RYA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-Initialize-the-RegisterDSN-default-values-first-and-.patch application/octet-stream 1.0 KB

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Fernando Luna 2018-04-23 17:36:36 RE: [ODBC] Question regarding accessing only tables to which the user has access
Previous Message Roberto Familia 2018-04-23 00:08:43 ODBC - psqlodbc-7.2.3