summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mysql/pymysql.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/pymysql.py')
-rw-r--r--lib/sqlalchemy/dialects/mysql/pymysql.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/pymysql.py b/lib/sqlalchemy/dialects/mysql/pymysql.py
index d70e997f7..25e2dadd3 100644
--- a/lib/sqlalchemy/dialects/mysql/pymysql.py
+++ b/lib/sqlalchemy/dialects/mysql/pymysql.py
@@ -28,9 +28,21 @@ class MySQLDialect_pymysql(MySQLDialect_mysqldb):
driver = 'pymysql'
description_encoding = None
+ # Py3K
+ #supports_unicode_statements = True
+ # Py2K
+ # end Py2K
@classmethod
def dbapi(cls):
return __import__('pymysql')
+ # Py3K
+ #def _extract_error_code(self, exception):
+ # if isinstance(exception.args[0], Exception):
+ # exception = exception.args[0]
+ # return exception.args[0]
+ # Py2K
+ # end Py2K
+
dialect = MySQLDialect_pymysql