We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8da54 commit 9f5ecdcCopy full SHA for 9f5ecdc
MySQLdb/_mysql.c
@@ -1246,11 +1246,11 @@ _mysql_row_to_dict(
1246
goto error;
1247
}
1248
int err = PyDict_Contains(r, pyname);
1249
- if (res < 0) {
+ if (err < 0) { // error
1250
Py_DECREF(v);
1251
1252
1253
- if (res) {
+ if (err) { // duplicate
1254
Py_DECREF(pyname);
1255
pyname = PyUnicode_FromFormat("%s.%s", fields[i].table, fields[i].name);
1256
if (pyname == NULL) {
0 commit comments