Skip to content
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

Compatibility issue with sqlalchemy 1.4 and flask-sqlalchemy 2.5 #1

Open
JesseDeLoore opened this issue Apr 22, 2022 · 0 comments
Open

Comments

@JesseDeLoore
Copy link

Hi,

when using the upsert function with sqlalchemy 1.4 and flask-sqlalchemy a version of this error/bug arises: pallets-eco/flask-sqlalchemy#953

Changing https://github.com/adimian/sayml/blob/master/sayml/__init__.py#L28
from

    inspector = Inspector.from_engine(session.get_bind())

to

    inspector = Inspector.from_engine(session.bind)

solves the issue for me locally, in the test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant