diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-28 01:22:10 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-28 01:22:10 -0400 |
| commit | 94096593ca92e105b8f716ff89b78856595d95c8 (patch) | |
| tree | 62ab8e0b270acf342e2a69729f72826c4d30ac37 /examples | |
| parent | e2b8c893ca98bb0141405a7d7d40c4024d5bdf41 (diff) | |
| download | sqlalchemy-94096593ca92e105b8f716ff89b78856595d95c8.tar.gz | |
Fixed a small bug in the dogpile example where the generation
of SQL cache keys wasn't applying deduping labels to the
statement the same way :class:`.Query` normally does.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/dogpile_caching/caching_query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dogpile_caching/caching_query.py b/examples/dogpile_caching/caching_query.py index f4724fb0b..fb019cc6b 100644 --- a/examples/dogpile_caching/caching_query.py +++ b/examples/dogpile_caching/caching_query.py @@ -136,7 +136,7 @@ def _key_from_query(query, qualifier=None): """ - stmt = query.statement + stmt = query.with_labels().statement compiled = stmt.compile() params = compiled.params |
