]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
postgresql.psycopg2 dialect: Correctly handle complete absence of connection parameters. 4563/head
authorJulian Mehnle <julian@mehnle.net>
Thu, 21 Mar 2019 16:56:27 +0000 (16:56 +0000)
committerJulian Mehnle <julian@mehnle.net>
Thu, 21 Mar 2019 21:32:24 +0000 (21:32 +0000)
commit8a05c96944a0523b06e9772cfe1832e500a43641
tree8946f2908e861b25da7c53c0c64c297ed767b099
parent8eaccf16aca90ef09e8e39cd06940ac8a51b5b38
postgresql.psycopg2 dialect: Correctly handle complete absence of connection parameters.

psycopg2/libpq will read connection parameters from environment variables, provided an empty (not-None) connection string is passed.
<https://www.postgresql.org/docs/current/libpq-envars.html>

Fixes: #4562
doc/build/core/engines.rst
lib/sqlalchemy/dialects/postgresql/psycopg2.py
test/dialect/postgresql/test_dialect.py