1 |
slords |
1.1 |
Fix incorrect fix to a prior bug, which broke Connection.escape() method. |
2 |
|
|
Per bug #331021. See also upstream report at |
3 |
|
|
http://sourceforge.net/tracker/index.php?func=detail&aid=1774101&group_id=22307&atid=374932 |
4 |
|
|
|
5 |
|
|
|
6 |
|
|
diff -Naur MySQL-python-1.2.2.orig/MySQLdb/connections.py MySQL-python-1.2.2/MySQLdb/connections.py |
7 |
|
|
--- MySQL-python-1.2.2.orig/MySQLdb/connections.py 2007-02-24 19:10:53.000000000 -0500 |
8 |
|
|
+++ MySQL-python-1.2.2/MySQLdb/connections.py 2008-06-19 22:21:16.000000000 -0400 |
9 |
|
|
@@ -140,11 +140,10 @@ |
10 |
|
|
|
11 |
|
|
conv2 = {} |
12 |
|
|
for k, v in conv.items(): |
13 |
|
|
- if isinstance(k, int): |
14 |
|
|
- if isinstance(v, list): |
15 |
|
|
- conv2[k] = v[:] |
16 |
|
|
- else: |
17 |
|
|
- conv2[k] = v |
18 |
|
|
+ if isinstance(k, int) and isinstance(v, list): |
19 |
|
|
+ conv2[k] = v[:] |
20 |
|
|
+ else: |
21 |
|
|
+ conv2[k] = v |
22 |
|
|
kwargs2['conv'] = conv2 |
23 |
|
|
|
24 |
|
|
self.cursorclass = kwargs2.pop('cursorclass', self.default_cursor) |