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 | |
| 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.
| -rw-r--r-- | doc/build/changelog/changelog_08.rst | 7 | ||||
| -rw-r--r-- | examples/dogpile_caching/caching_query.py | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst index fbc79b108..bec8a3f05 100644 --- a/doc/build/changelog/changelog_08.rst +++ b/doc/build/changelog/changelog_08.rst @@ -7,6 +7,13 @@ :version: 0.8.2 .. change:: + :tags: bug, examples + + 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. + + .. change:: :tags: bug, engine, sybase :tickets: 2732 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 |
