]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add quoted_name to pg8000 py_types
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Aug 2017 17:30:49 +0000 (13:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Aug 2017 21:25:28 +0000 (17:25 -0400)
commit03560c4b83308719067ec635662c35f9a437fb7f
tree14ea8351c88834e08cd8c38ec62d879b1b8e226d
parent725298ea4bdd874990940ca93c406ccb533c732d
Add quoted_name to pg8000 py_types

Fixed bug where the pg8000 driver would fail if using
:meth:`.MetaData.reflect` with a schema name, since the schema name would
be sent as a "quoted_name" object that's a string subclass, which pg8000
doesn't recognize.   The quoted_name type is added to pg8000's
py_types collection on connect.

Change-Id: Id0f838320cb66563685e094e4eae2d5116100d27
Fixes: #4041
doc/build/changelog/unreleased_12/4041.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/pg8000.py
test/dialect/postgresql/test_dialect.py