]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix typo in a docstring (#10925)
authorEugene Toder <eltoder@users.noreply.github.com>
Thu, 25 Jan 2024 22:19:44 +0000 (17:19 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 25 Jan 2024 22:20:19 +0000 (23:20 +0100)
* Fix typo in a docstring

It's "compiled_cache" not "query_cache".

* Update async engine as well

(cherry picked from commit e7cda85d81038cf390a15b93d5276754a8cc2514)

lib/sqlalchemy/engine/base.py
lib/sqlalchemy/ext/asyncio/engine.py

index dcce3ed342b17a45453178f24e17a1f099098d4e..4a5fd15e34a778673e63b3b489c1f4bcf2ff1167 100644 (file)
@@ -2990,7 +2990,7 @@ class Engine(
         This applies **only** to the built-in cache that is established
         via the :paramref:`_engine.create_engine.query_cache_size` parameter.
         It will not impact any dictionary caches that were passed via the
-        :paramref:`.Connection.execution_options.query_cache` parameter.
+        :paramref:`.Connection.execution_options.compiled_cache` parameter.
 
         .. versionadded:: 1.4
 
index 02b70ecd583389331f1b8eeb5f507d7ec8913187..b5c8c7d76f7eea047d0c10e335066baf1cb451d8 100644 (file)
@@ -1165,7 +1165,7 @@ class AsyncEngine(ProxyComparable[Engine], AsyncConnectable):
         This applies **only** to the built-in cache that is established
         via the :paramref:`_engine.create_engine.query_cache_size` parameter.
         It will not impact any dictionary caches that were passed via the
-        :paramref:`.Connection.execution_options.query_cache` parameter.
+        :paramref:`.Connection.execution_options.compiled_cache` parameter.
 
         .. versionadded:: 1.4