makara icon indicating copy to clipboard operation
makara copied to clipboard

Server connection URL fails if username contains "@"

Open timtilkee opened this issue 6 years ago • 1 comments

Hello ! We try to move to Azure Postgresql, but the DB's username always contains "@" (name@server), hence the full db url contains 2 "@" and fails: postgres://USERNAME@HOSTNAME:[email protected]:5432/postgres

We should be able to replace "@" by "%40" in the username: postgres://USERNAME%40HOSTNAME:[email protected]:5432/postgres, but it doesn't work ;(

Can you help us?

timtilkee avatar May 07 '19 11:05 timtilkee

According to PostgreSQL documentation :

Percent-encoding may be used to include symbols with special meaning in any of the URI parts, e.g. replace = with %3D.

Benjiiim avatar May 15 '19 10:05 Benjiiim