diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-05-22 14:08:55 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-05-22 15:51:07 -0400 |
| commit | 9f0fb6c601829cb7c9f449d57e12e8b95dab51f5 (patch) | |
| tree | 1201e89aa89fac39316ccfa87567a88b9667fa4c /doc | |
| parent | da1bc9878b71f6f7b87e2fa7895e1631ae581609 (diff) | |
| download | sqlalchemy-9f0fb6c601829cb7c9f449d57e12e8b95dab51f5.tar.gz | |
Allow metadata.reflect() to recover from unreflectable tables
Added support for views that are unreflectable due to stale
table definitions, when calling :meth:`.MetaData.reflect`; a warning
is emitted for the table that cannot respond to ``DESCRIBE``
but the operation succeeds. The MySQL dialect now
raises UnreflectableTableError which is in turn caught by
MetaData.reflect(). Reflecting the view standalone raises
this error directly.
Change-Id: Id8005219d8e073c154cc84a873df911b4a6cf4d6
Fixes: #3871
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/changelog/changelog_12.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/build/changelog/changelog_12.rst b/doc/build/changelog/changelog_12.rst index 0f7b7b9af..a96436aaf 100644 --- a/doc/build/changelog/changelog_12.rst +++ b/doc/build/changelog/changelog_12.rst @@ -25,6 +25,15 @@ :ref:`change_3796` + .. change:: 3871 + :tags: bug, mysql + :tickets: 3871 + + Added support for views that are unreflectable due to stale + table definitions, when calling :meth:`.MetaData.reflect`; a warning + is emitted for the table that cannot respond to ``DESCRIBE``, + but the operation succeeds. + .. change:: baked_opts :tags: feature, ext |
