We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9729618 commit c1c812aCopy full SHA for c1c812a
1 file changed
MySQLdb/_mysql.c
@@ -1442,7 +1442,7 @@ _mysql_ResultObject_fetch_row(
1442
&maxrows, &how))
1443
return NULL;
1444
check_result_connection(self);
1445
- if (how >= (int)sizeof(row_converters)) {
+ if (how >= (int)(sizeof(row_converters) / sizeof(row_converters[0]))) {
1446
PyErr_SetString(PyExc_ValueError, "how out of range");
1447
1448
}
0 commit comments