]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: adjust PrepareManager.validate() docstring
authorDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 8 Jun 2023 12:03:18 +0000 (14:03 +0200)
committerDenis Laxalde <denis@laxalde.org>
Thu, 8 Jun 2023 12:05:19 +0000 (14:05 +0200)
From commit bfabe88aba4769e0a44206e1ace7c299991a957d, the method does
not return a command, but it records it through _rotate().

psycopg/psycopg/_preparing.py

index 6b08f6bbca79211cad61ec50c259619d86c1cc66..158552ba55785709a802b53e449361317643359a 100644 (file)
@@ -160,7 +160,7 @@ class PrepareManager:
     ) -> None:
         """Validate cached entry with 'key' by checking query 'results'.
 
-        Possibly return a command to perform maintenance on database side.
+        Possibly record a command to perform maintenance on database side.
         """
         if self._should_discard(prep, results):
             return