add surrogate escape for callproc and test case for that (#104)

This commit is contained in:
Woo-Jing, Seok
2016-07-28 18:49:52 +09:00
committed by INADA Naoki
parent fb842fbdd5
commit c7d2168939
2 changed files with 4 additions and 3 deletions

View File

@@ -347,7 +347,7 @@ class BaseCursor(object):
q = "SET @_%s_%d=%s" % (procname, index,
db.literal(arg))
if isinstance(q, unicode):
q = q.encode(db.unicode_literal.charset)
q = q.encode(db.unicode_literal.charset, 'surrogateescape')
self._query(q)
self.nextset()