ECPG connect by URL doesn't work

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема ECPG connect by URL doesn't work
Дата
Msg-id 200601311231.25744.peter_e@gmx.net
обсуждение исходный текст
Ответы Re: ECPG connect by URL doesn't work  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-bugs
According to this documentation

http://www.postgresql.org/docs/8.1/static/ecpg-connect.html

it should work to connect in ECPG like this:

EXEC SQL CONNECT TO tcp:postgresql://bell.credativ.de:5432/pei AS myconn USER pei IDENTIFIED BY 'geheim';

(Or perhaps with single quotes, but that doesn't make a difference.)

However, in the server logs I just see this:

FATAL:  database "'tcp:postgresql://bell.credativ.de:5432/pei'" does not exist

So apparently this URL parsing needs work.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: Philipp Reisner
Дата:
Сообщение: Re: Endless loop in ExecNestLoop
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: ECPG connect by URL doesn't work