diff options
author | RamonWill <ramonwilliams@hotmail.co.uk> | 2020-09-02 18:43:53 -0400 |
---|---|---|
committer | RamonWill <ramonwilliams@hotmail.co.uk> | 2020-09-23 11:20:54 +0100 |
commit | f9ef7fd30b3f0613bc9dd912621856b3262d23bc (patch) | |
tree | 03bb2160f7d10e24efaa9c209229e1852244ff97 /lib/sqlalchemy/dialects/sqlite/pysqlite.py | |
parent | 9e31cce582569dfe6fb33b33aadd43d70c2ae593 (diff) | |
download | sqlalchemy-f9ef7fd30b3f0613bc9dd912621856b3262d23bc.tar.gz |
Support for multiple hosts in PostgreSQL connection string
Provide support for multiple hosts in the PostgreSQL connection string.
A user requested for SQLAlchemy to support multiple hosts within a PostgreSQL URL string. The proposed fix allows this. In the event that the url contains multiple hosts the proposed code will convert the query["hosts"] tuple into a single string. This allows the hosts to then get converted into a valid dsn variable in the psycopg2 connect function.
This pull request is:
- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [X ] A short code fix
- please include the issue number, and create an issue if none exists, which
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests. one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.
**Have a nice day!**
Fixes: #4392
Closes: #5554
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5554
Pull-request-sha: 3f7a0ab8df9f1411a9f1ac0e152583bc7bf0c365
Change-Id: I3f3768d51b8331de786ffdc025b7ecfc662eafe5
Diffstat (limited to 'lib/sqlalchemy/dialects/sqlite/pysqlite.py')
0 files changed, 0 insertions, 0 deletions