Bug #1774101 was caused by only copying things that had integer keys. We really

want to copy all key/value pairs and specially handle the int->list case.
This commit is contained in:
kylev
2009-05-18 21:12:38 +00:00
parent eb0eb1f292
commit 4d70852735

View File

@@ -158,11 +158,10 @@ class Connection(_mysql.connection):
conv2 = {}
for k, v in conv.items():
if isinstance(k, int):
if isinstance(v, list):
conv2[k] = v[:]
else:
conv2[k] = v
if isinstance(k, int) and isinstance(v, list):
conv2[k] = v[:]
else:
conv2[k] = v
kwargs2['conv'] = conv2
self.cursorclass = kwargs2.pop('cursorclass', self.default_cursor)