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

🐛 Fix Select and SelectOfScalar to inherit cache to avoid warning: SAWarning: Class SelectOfScalar will not make use of SQL compilation caching #234

Merged
merged 2 commits into from
Aug 27, 2022

Conversation

rabinadk1
Copy link
Contributor

Fixes: #189
Original Solution found in #189 (comment) from @leynier

@leynier
Copy link
Contributor

leynier commented Feb 4, 2022

Cool 👌🏼

@carlbordum
Copy link

This patch looks good to me.

@oldfielj-ansto
Copy link

Noticed this as well, would be nice to get rid of the warning spam.

LGTM

@tiangolo tiangolo changed the title Update Select and SelectOfScalar to inherit cache 🐛 Fix Select and SelectOfScalar to inherit cache to avoid warning: SAWarning: Class SelectOfScalar will not make use of SQL compilation caching Aug 27, 2022
@codecov
Copy link

codecov bot commented Aug 27, 2022

Codecov Report

Merging #234 (75f2d1c) into main (5e0ac5b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #234   +/-   ##
=======================================
  Coverage   97.70%   97.70%           
=======================================
  Files         185      185           
  Lines        6134     6134           
=======================================
  Hits         5993     5993           
  Misses        141      141           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tiangolo
Copy link
Member

Awesome! Thanks a lot @rabinadk1 and @leynier for the tip! 🍰 ☕

This will be available in SQLModel 0.0.7, released in the next hours. 🎉

@tiangolo tiangolo merged commit 4755787 into fastapi:main Aug 27, 2022
@tiangolo tiangolo mentioned this pull request Aug 27, 2022
8 tasks
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

Successfully merging this pull request may close these issues.

SAWarning from sqlalchemy
5 participants