summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/clinic
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-01-13 23:17:33 (GMT)
committerGitHub <noreply@github.com>2021-01-13 23:17:33 (GMT)
commita330365ca5ae836075f306334ab648bf23471481 (patch)
tree8c307ab913c03eecb330ef798c555a8517f16423 /Modules/_sqlite/clinic
parent61d8c54f43a7871d016f98b38f86858817d927d5 (diff)
downloadcpython-a330365ca5ae836075f306334ab648bf23471481.zip
cpython-a330365ca5ae836075f306334ab648bf23471481.tar.gz
cpython-a330365ca5ae836075f306334ab648bf23471481.tar.bz2
bpo-40956: Fix sqlite3.Cursor.fetchmany() default value (GH-24214)
Diffstat (limited to 'Modules/_sqlite/clinic')
-rw-r--r--Modules/_sqlite/clinic/cursor.c.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/_sqlite/clinic/cursor.c.h b/Modules/_sqlite/clinic/cursor.c.h
index d5cf0a5..7a79d74 100644
--- a/Modules/_sqlite/clinic/cursor.c.h
+++ b/Modules/_sqlite/clinic/cursor.c.h
@@ -138,10 +138,13 @@ pysqlite_cursor_fetchone(pysqlite_Cursor *self, PyObject *Py_UNUSED(ignored))
}
PyDoc_STRVAR(pysqlite_cursor_fetchmany__doc__,
-"fetchmany($self, /, size=cursor.arraysize)\n"
+"fetchmany($self, /, size=1)\n"
"--\n"
"\n"
-"Fetches several rows from the resultset.");
+"Fetches several rows from the resultset.\n"
+"\n"
+" size\n"
+" The default value is set by the Cursor.arraysize attribute.");
#define PYSQLITE_CURSOR_FETCHMANY_METHODDEF \
{"fetchmany", (PyCFunction)(void(*)(void))pysqlite_cursor_fetchmany, METH_FASTCALL|METH_KEYWORDS, pysqlite_cursor_fetchmany__doc__},
@@ -256,4 +259,4 @@ pysqlite_cursor_close(pysqlite_Cursor *self, PyObject *Py_UNUSED(ignored))
{
return pysqlite_cursor_close_impl(self);
}
-/*[clinic end generated code: output=11db0de4fb1951a9 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=6a2d4d49784aa686 input=a9049054013a1b77]*/