summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-06-08 13:05:20 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-06-08 13:07:06 -0400
commit293b0e3dd8205185b84cd3baf2f078348437d245 (patch)
tree062f2c6e0c820a631df4d551d4385b9d67b5f18e /lib/sqlalchemy/sql/compiler.py
parent258d07e478eab9ee385f36a5c5fd56c56bf7dfea (diff)
downloadsqlalchemy-293b0e3dd8205185b84cd3baf2f078348437d245.tar.gz
suppport with_loader_criteria pickling w/ fixed callable
Fixed issue where a :func:`_orm.with_loader_criteria` option could not be pickled, as is necessary when it is carried along for propagation to lazy loaders in conjunction with a caching scheme. Currently, the only form that is supported as picklable is to pass the "where criteria" as a fixed module-level callable function that produces a SQL expression. An ad-hoc "lambda" can't be pickled, and a SQL expression object is usually not fully picklable directly. Fixes: #8109 Change-Id: I49fe69088b0c7e58a0f22c67d2ea4e33752a5a73
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions