/[pkgs]/devel/MySQL-python/escape-fix.patch
ViewVC logotype

Contents of /devel/MySQL-python/escape-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Jun 20 02:31:00 2008 UTC (17 months ago) by tgl
Branch: MAIN
CVS Tags: F-12-split, F-10-split, MySQL-python-1_2_2-11_fc11, MySQL-python-1_2_3-0_1_c1_fc12, MySQL-python-1_2_3-0_2_c1_fc12, MySQL-python-1_2_2-10_fc11, F-11-split, MySQL-python-1_2_2-8_fc11, MySQL-python-1_2_2-7_fc10, MySQL-python-1_2_2-9_fc11, MySQL-python-1_2_3-0_3_c1_fc12, HEAD
File MIME type: text/x-patch
Fix broken escape() method
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)

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2