summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-08-05 19:17:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-08-05 19:19:02 -0400
commit3729a070d23421c94239bd24520592287476fdde (patch)
tree730dc7940da32e1f4b1b866c7956127c0f59ea6d /examples
parentb75630cec9418ef087e7c6af0370ac6ba728a251 (diff)
downloadsqlalchemy-3729a070d23421c94239bd24520592287476fdde.tar.gz
accommodate for untracked boundparam lambda in offline_string
Fixed an issue in the ``CacheKey.to_offline_string()`` method used by the dogpile.caching example where attempting to create a proper cache key from the special "lambda" query generated by the lazy loader would fail to include the parameter values, leading to an incorrect cache key. Fixes: #6858 Change-Id: Ice27087583c6f3ff79cf7d5b879e5dd0a4e58158
Diffstat (limited to 'examples')
-rw-r--r--examples/dogpile_caching/caching_query.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/dogpile_caching/caching_query.py b/examples/dogpile_caching/caching_query.py
index d1199090c..68f72e5f0 100644
--- a/examples/dogpile_caching/caching_query.py
+++ b/examples/dogpile_caching/caching_query.py
@@ -139,7 +139,6 @@ class FromCache(UserDefinedOption):
key = statement_cache_key.to_offline_string(
orm_cache._statement_cache, statement, parameters
) + repr(self.cache_key)
-
# print("here's our key...%s" % key)
return key