Re: Question about password character in ECPG's connection string
Luca Ferrari <fluca1978@gmail.com>
From: Luca Ferrari <fluca1978@gmail.com>
To: "Egashira, Yusuke" <egashira.yusuke@jp.fujitsu.com>
Cc: Alban Hertroys <haramrae@gmail.com>, "pgsql-general@postgresql.org" <pgsql-general@postgresql.org>,
Adrian Klaver <adrian.klaver@aklaver.com>, Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
Date: 2019-08-29T11:34:23Z
Lists: pgsql-general
On Thu, Aug 29, 2019 at 1:08 PM Egashira, Yusuke <egashira.yusuke@jp.fujitsu.com> wrote: > According to my tests, I think that the ECPG's connection_option seems not to accept '&' character as password anyhow... > ECPG CONNECT's connection_option seems to have some restricted characters. As far as I understand from <https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/interfaces/ecpg/ecpglib/connect.c;h=ec01f67b61d5e8f0b88f84346451d2135a78b777;hb=HEAD#l603> unwanted characters are '&' and '='. Even if the connetion string seems an URL, it is managed in plain text without any sort of escaping. > I hope to this limitation will be documented because it causes confusion. If this is confirmed, I agree this should be documented. Luca
Commits
-
Doc: describe the "options" allowed in an ECPG connection target string.
- fd198a89ba89 9.6.16 landed
- bea87c02cee7 9.4.25 landed
- 942b78af81aa 9.5.20 landed
- 9230cc706df0 10.11 landed
- 756349c87b85 13.0 landed
- 5eec908c3c2e 12.0 landed
- 232f645ae20f 11.6 landed
-
Cosmetic improvements for options-handling code in ECPGconnect().
- b61a5e6a1f8d 13.0 landed