This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
pg_connect params encodings #6760
Comments
The example configuration you have given for This certainly is pretty limiting and can be improved upon as passwords can contain symbols. I also find the use of http_build_query quite interesting. |
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Oct 20, 2014
…ng at Pgsql Connection
@ishenkoyv @jeremyquinton I created PR #6787 for it |
👍 |
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Ocramius
added a commit
that referenced
this issue
Dec 31, 2014
Handled in #6787 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/zendframework/zf2/blob/master/library/Zend/Db/Adapter/Driver/Pgsql/Connection.php#LC180
I can't connect to postgres if params contain special symbols, e.g. '!' as connection string represents them in url encoded way.
So if my config db section looks like
the produced connection string will be
'host=localhost user=test password=test123%21 dbname=test'
There is link to http://php.net/pg_connect in code but really I don't understand what I should find there.
Is there reason to use http_build_query against connection string through the connection method for psql driver or it's a legacy code which should be removed?
Best regards
The text was updated successfully, but these errors were encountered: