Skip to content

Commit f3ea4f5

Browse files
committed
fix caching
1 parent 9f5ecdc commit f3ea4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQLdb/_mysql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ _mysql__fetch_row(
13751375
_convertfunc *convert_row = row_converters[how];
13761376

13771377
PyObject *cache = NULL;
1378-
if (maxrows > 0 && how > 1) {
1378+
if (maxrows > 0 && how > 0) {
13791379
cache = PyTuple_New(mysql_num_fields(self->result));
13801380
if (!cache) {
13811381
return -1;

0 commit comments

Comments
 (0)