/[smecontribs]/rpms/MySQL-python/contribs8/escape-fix.patch
ViewVC logotype

Annotation of /rpms/MySQL-python/contribs8/escape-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Feb 24 21:27:43 2010 UTC (14 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: MySQL-python-1_2_3-0_4_c1_el5_sme, HEAD
Initial import

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)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed