BUG: copyConnAttributes should decode_or_remove_braces for user name too

From: Першин Юрий Петрович <pershin(at)prosoftsystems(dot)ru>
To: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: BUG: copyConnAttributes should decode_or_remove_braces for user name too
Date: 2020-12-23 00:44:03
Message-ID: 0feaa51970b9462bacb803675ca9155b@prosoftsystems.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi
1. Create user:
CREATE ROLE "{te{}st" NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT LOGIN PASSWORD '{}p';

2. Create pgpass.vbs file
Set c = CreateObject("ADODB.Connection")
c.Open "database=POLL_TEST;Server=test-serv14.test.domain.com;UID={{te{}}st};Provider=MSDASQL;Password={{}}p};Driver={PostgreSQL UNICODE};Port=5432;Debug=1;"
Set cmd = CreateObject("ADODB.Command")
Set cmd.ActiveConnection = c
cmd.CommandText = "SELECT 1"
cmd.CommandType = 1 'adCmdText
Set r = CreateObject("ADODB.Recordset")
r.Open cmd, , 1, 3, 1 'ctKeySet, ltOptimistic, adCmdText
MsgBox r.Fields(0).Value
r.Close

3. execute wscript.exe pgpass.vbs

Browse pgsql-odbc by date

  From Date Subject
Next Message Michel Cevzar 2020-12-30 13:56:42 odbc psql link ssl cert error
Previous Message Першин Юрий Петрович 2020-12-22 20:13:01 SQLNativeSqlW bug (when both szSqlStr and cbSqlStrMax==0)