RE: parse mistake in ecpg connect string

Поиск
Список
Период
Сортировка
От kuroda.hayato@fujitsu.com
Тема RE: parse mistake in ecpg connect string
Дата
Msg-id OSBPR01MB31573F75BE36C7EF89348AF8F58F9@OSBPR01MB3157.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на parse mistake in ecpg connect string  ("Wang, Shenhao" <wangsh.fnst@cn.fujitsu.com>)
Список pgsql-hackers
Dear Wang,

> the value tmp2 will always be NULL, the unix-socket path will be ignored.

I confirmed it, you're right.

> I have fixed this problem, the patch attached.

It looks good to me:-).

> I will try to fix this problem later, but it seems a little difficult to add some lex/bison file rules

I think rule `connection_target` must be fixed.
Either port or unix_socket_directory can be accepted now(I followed the comment),
but we should discuss about it.
According to the doc, libpq's connection-URI accept both.

The attached patch contains all fixes, and pass test in my environment.
And the following line:

  EXEC SQL CONNECT TO unix:postgresql://localhost:/a:/postgres;

is precompiled to:

  { ECPGconnect(__LINE__, 0, "unix:postgresql://localhost:/a:/postgres" , NULL, NULL , NULL, 0); }

Is it OK?

Best Regards,
Hayato Kuroda
FUJITSU LIMITED


Вложения

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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: parse mistake in ecpg connect string
Следующее
От: "kuroda.hayato@fujitsu.com"
Дата:
Сообщение: RE: parse mistake in ecpg connect string