Re: Question about password character in ECPG's connection string

Alban Hertroys <haramrae@gmail.com>

From: Alban Hertroys <haramrae@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: "Egashira, Yusuke" <egashira.yusuke@jp.fujitsu.com>, Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>, "pgsql-general@postgresql.org" <pgsql-general@postgresql.org>
Date: 2019-08-28T20:19:28Z
Lists: pgsql-general
> 2)  "tcp:postgresql://localhost?user=myuser&password=password" looks like
> 
> "tcp:postgresql://localhost?user=myuser&password=my&pwd"
> 
> and password is parsed on the & and you also end up with an extra parameter pwd

Perhaps it helps to URL-encode the & in the password as %26?

Alban Hertroys
--
There is always an exception to always.







Commits

  1. Doc: describe the "options" allowed in an ECPG connection target string.

  2. Cosmetic improvements for options-handling code in ECPGconnect().