New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidRequestError: Table … is already defined for this MetaData instance
(table inheritance on v2.2)
#478
Comments
Yeah, read those earlier, but couldn't make a sufficiently clear connection; my example above derives from |
I think it's a general problem with polymorphy and the latest changes in Flask-SA. I'd pin the version to 2.1 until this is fixed - I don't think there's any workaround for now |
Thanks, will do that. |
There is some bug in Flask-SQLAlchemy 2.2, until it will be fixed version will be pinned to 2.1. Also I will consider leaving this extension, work with just SQLAlchemy and write needed constructs on my own. More about the bug: pallets-eco/flask-sqlalchemy#478
v2.3.0 seems to have fixed the issue for me, thanks! |
If you have a new issue, please open a new ticket with an example demonstrating it. |
On Flask-SQLAlchemy 2.2 (Flask 0.12, SQLAlchemy 1.1.6, Python 3.5.3) I the following traceback that does not occur with Flask-SQLAlchemy 2.1:
Somewhat minimal code to reproduce:
Unless I've been doing that wrong the whole time and just got away with it by chance, I think this might be unintended behavior on Flask-SQLAlchemy's side.
The text was updated successfully, but these errors were encountered: