mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user