Skip to content

Commit

Permalink
Added missing docstring for cursor.paramcount
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Apr 2, 2022
1 parent f2fc6e8 commit 70ed9b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions include/docs/cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,9 @@ PyDoc_STRVAR(
"Indicates if the current result set contains in out or out parameter\n"
"from a previous executed stored procedure."
);

PyDoc_STRVAR(
cursor_paramcount__doc__,
"(read)\n\n"
"Returns the number of parameter markers present in the executed statement."
);
2 changes: 1 addition & 1 deletion mariadb/mariadb_cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static struct PyMemberDef MrdbCursor_Members[] =
T_UINT,
offsetof(MrdbCursor, parseinfo.paramcount),
READONLY,
MISSING_DOC},
cursor_paramcount__doc__},
{"_data",
T_OBJECT,
offsetof(MrdbCursor, data),
Expand Down

0 comments on commit 70ed9b4

Please sign in to comment.