BUG: copyConnAttributes should decode_or_remove_braces for user name too

Поиск
Список
Период
Сортировка
От Першин Юрий Петрович
Тема BUG: copyConnAttributes should decode_or_remove_braces for user name too
Дата
Msg-id 0feaa51970b9462bacb803675ca9155b@prosoftsystems.ru
обсуждение исходный текст
Список 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

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Першин Юрий Петрович
Дата:
Сообщение: SQLNativeSqlW bug (when both szSqlStr and cbSqlStrMax==0)
Следующее
От: Michel Cevzar
Дата:
Сообщение: odbc psql link ssl cert error