| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -229,7 +229,7 @@ def _executeRetry(self, conn, cursor, query): | |||
| 229 | 229 | self.printDebug(conn, query, 'QueryR') | |
| 230 | 230 | dbEncoding = self.dbEncoding | |
| 231 | 231 | if dbEncoding and not isinstance(query, bytes) and ( | |
| 232 | - self.driver in ('connector', 'oursql')): | ||
| 232 | + self.driver in ('mysqldb', 'connector', 'oursql')): | ||
| 233 | 233 | query = query.encode(dbEncoding, 'surrogateescape') | |
| 234 | 234 | # When a server connection is lost and a query is attempted, most of | |
| 235 | 235 | # the time the query will raise a SERVER_LOST exception, then at the | |
| Back | FazBrowse Home | New Git URL |
0 commit comments