.. changelog::
:version: 0.8.5
+ .. change::
+ :tags: bug, mysql
+ :pullreq: github:61
+ :versions: 0.9.2
+
+ Some missing methods added to the cymysql dialect, including
+ _get_server_version_info() and _detect_charset(). Pullreq
+ courtesy Hajime Nakagami.
+
.. change::
:tags: bug, py3k
:pullreq: github:63
def dbapi(cls):
return __import__('cymysql')
+ def _get_server_version_info(self, connection):
+ dbapi_con = connection.connection
+ version = [int(v) for v in dbapi_con.server_version.split('.')]
+ return tuple(version)
+
+ def _detect_charset(self, connection):
+ return connection.connection.charset
+
def _extract_error_code(self, exception):
return exception.errno