There's a long history, going back over a decade, that issues which have existed for a long time are suddenly reported in twos, that is, within a day of each other.
A recent example is just yesterday Alembic reporting both that type comparison *does* check the length of the types, and that it is mis-documented, and literally three hours earlier a report stating that it *does not* check the length: https://github.com/sqlalchemy/alembic/issues/613 https://github.com/sqlalchemy/alembic/issues/612 <https://github.com/sqlalchemy/alembic/issues/613> today, we have this issue, which I can confirm has existed since version 1.2 over two years ago, reported for the first time ever here, and then a day later in https://github.com/sqlalchemy/sqlalchemy/issues/4947 . I realized I can likely have the baked loader invalidate itself if before_compile occurs. this will allow it to work for other cached loaders too like select in loading. will try that now. On Wed, Oct 23, 2019, at 10:06 AM, eric.lemo...@gmail.com wrote: > > > On Wed, Oct 23, 2019 at 3:16 PM Mike Bayer <mike...@zzzcomputing.com> wrote: >> __ >> >> >> On Tue, Oct 22, 2019, at 12:30 PM, eric.lemo...@gmail.com wrote: >>> >>> >>> >>>> it sounds like you should use a bound parameter with a lambda inside of >>>> it, there's not an explicit "on lazyload" hook at the moment. >>> >>> Yep, that seems to be doing the job! >> >> >> that worked? wow >> >> :) > > > SQLAlchemy always has a solution for me. But often uneasy to find :-) > > > > >> >> >> guess you are using a threadlocal to get the context? > > > Yes indeed. > > > -- > Eric > > -- > SQLAlchemy - > The Python SQL Toolkit and Object Relational Mapper > > http://www.sqlalchemy.org/ > > To post example code, please provide an MCVE: Minimal, Complete, and > Verifiable Example. See http://stackoverflow.com/help/mcve for a full > description. > --- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sqlalchemy/CAEE1YnjRsi9kh-V3NtVUQL--TqbCaGPCj4V%3Drj8v2sc8bq%3DU%3Dg%40mail.gmail.com > > <https://groups.google.com/d/msgid/sqlalchemy/CAEE1YnjRsi9kh-V3NtVUQL--TqbCaGPCj4V%3Drj8v2sc8bq%3DU%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/3bc4182b-906e-4193-a593-fc844c921700%40www.fastmail.com.