]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Fix server-side cursors docs typos
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Feb 2021 10:08:55 +0000 (11:08 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Feb 2021 10:08:55 +0000 (11:08 +0100)
Reported by @lelit, thank you!

docs/connection.rst
docs/cursor.rst

index 04a7842a767a6ede78e980dfacb240329b0d3ed8..74bfcfd33648f08820f3bccb679b8622e8315e1c 100644 (file)
@@ -59,7 +59,7 @@ The `!Connection` class
     .. automethod:: cursor
 
         Calling the method without a *name* creates a client-side cursor,
-        specifying a *name* crates a server-side cursor. See
+        specifying a *name* creates a server-side cursor. See
         :ref:`cursor-types` for the details.
 
         .. note:: You can use :ref:`with conn.cursor(): ...<usage>`
index 89d8e0159fb9ee38c1d07f19d4b5665e8e3df98c..18ecbf25f0ba890c36eeba9cce139e8faf0f06b9 100644 (file)
@@ -202,7 +202,7 @@ The `!ServerCursor` class
                            not. if `!None` leave the choice to the server.
         :type scrollable: `!Optional[bool]`
         :param hold: if `!True` allow the cursor to be used after the
-                     transaction cretaing it has committed.
+                     transaction creating it has committed.
         :type hold: `!bool`
 
         Create a server cursor with given `name` and the *query* in argument.
@@ -242,7 +242,7 @@ The `!ServerCursor` class
 
     .. automethod:: scroll
 
-        These method uses the MOVE_ SQL statement to move the current position
+        This method uses the MOVE_ SQL statement to move the current position
         in the server-side cursor, which will affect following `!fetch*()`
         operations. If you need to scroll backwards you should probably
         use `scrollable=True` in `execute()`.