FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix(mysql): Fix unicode errors in mysqlclient · elfring/sqlobject@e4cad6d · GitHub

Commit e4cad6d

Browse files
committed
Fix(mysql): Fix unicode errors in mysqlclient
1 parent 62156a3 commit e4cad6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sqlobject/mysql/mysqlconnection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def _executeRetry(self, conn, cursor, query):
229229
self.printDebug(conn, query, 'QueryR')
230230
dbEncoding = self.dbEncoding
231231
if dbEncoding and not isinstance(query, bytes) and (
232-
self.driver in ('connector', 'oursql')):
232+
self.driver in ('mysqldb', 'connector', 'oursql')):
233233
query = query.encode(dbEncoding, 'surrogateescape')
234234
# When a server connection is lost and a query is attempted, most of
235235
# the time the query will raise a SERVER_LOST exception, then at the

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL