From d8b337d4ee4ec9a499ba49b9a8061a0e6d9e843e Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Fri, 30 Jun 2023 12:30:36 +1000 Subject: [PATCH] correct documentation typo CURSOR_TYPE -> CURSOR There is no CURSOR_TYPE, only CURSOR. --- mariadb/connections.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mariadb/connections.py b/mariadb/connections.py index a4ea5a6..59d3e55 100644 --- a/mariadb/connections.py +++ b/mariadb/connections.py @@ -110,8 +110,8 @@ class will be created. compatibility reasons and should be avoided due to possible inconsistency. - - cursor_type = CURSOR_TYPE.NONE - If cursor_type is set to CURSOR_TYPE.READ_ONLY, a cursor is opened + - cursor_type = CURSOR.NONE + If cursor_type is set to CURSOR.READ_ONLY, a cursor is opened for the statement invoked with cursors execute() method. - prepared = False @@ -132,7 +132,7 @@ class will be created. due to possible inconsistency in case two or more fields in a result set have the same name. - If cursor_type is set to CURSOR_TYPE.READ_ONLY, a cursor is opened for + If cursor_type is set to CURSOR.READ_ONLY, a cursor is opened for the statement invoked with cursors execute() method. """ self._check_closed()