Update of /cvsroot/monetdb/clients/src/python/Cimpl/MonetSQLdb
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11736
Modified Files:
Tag: Clients_1-20
converters.py
Log Message:
Unicode strings also need to be quoted.
Index: converters.py
===================================================================
RCS file: /cvsroot/monetdb/clients/src/python/Cimpl/MonetSQLdb/converters.py,v
retrieving revision 1.2.6.1
retrieving revision 1.2.6.2
diff -u -d -r1.2.6.1 -r1.2.6.2
--- converters.py 29 Nov 2007 21:34:57 -0000 1.2.6.1
+++ converters.py 11 Dec 2007 09:08:10 -0000 1.2.6.2
@@ -61,7 +61,7 @@
def Unicode2Str(s, d):
"""Convert a unicode object to a string using utf-8 encoding."""
- return s.encode('utf-8')
+ return string_literal(s.encode('utf-8'), d)
# Python 1.5.2 compatibility hack
if str(0L)[-1]=='L':
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins