From: Torre de l. J. <j....@BG...> - 2005-03-07 17:32:06
|
Hi all, Trying to make pydb2 in my project I had to make a little change in the = code. I need to use parameters in the SQL statements but they seem not work = very fine. The type detection of the parameters does not work properly = with Unicode strings. That's why I changed in line 464 of DB2.py where it says: elif type(q) =3D=3D type(''): for elif type(q) =3D=3D type(unicode(' ')): If not the Unicode strings are not detected as strings and not embrace = with '' in the SQL statements. Is that Ok? Cheers. Javier de la Torre Botanic Garden and Botanical Museum Berlin Dahlem. FUB Department of Biodiversity Informatics and Laboratories K=F6nigin-Luise-Str 6-8, D - 14191 Berlin email j....@bg... phone +49(30) 838-50284=20 URL http://www.bgbm.org/torre =20 |