mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
add surrogate escape for callproc and test case for that (#104)
This commit is contained in:
committed by
INADA Naoki
parent
fb842fbdd5
commit
c7d2168939
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user