]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :meth:`.PGDialect.has_table` method will now query against
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Dec 2014 17:01:19 +0000 (12:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Dec 2014 17:01:19 +0000 (12:01 -0500)
commit87bfcf91e9659893f17adf307090bc0a4a8a8f23
treee36c7d4216ab1415f0b320ea581ab842ffd25726
parent156f473de00024688404d73aea305cd4fc452638
- The :meth:`.PGDialect.has_table` method will now query against
``pg_catalog.pg_table_is_visible(c.oid)``, rather than testing
for an exact schema match, when the schema name is None; this
so that the method will also illustrate that temporary tables
are present.  Note that this is a behavioral change, as Postgresql
allows a non-temporary table to silently overwrite an existing
temporary table of the same name, so this changes the behavior
of ``checkfirst`` in that unusual scenario.
fixes #3264
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/dialect/postgresql/test_reflection.py