summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mysql/pymysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-12-04 19:12:52 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-12-04 19:12:52 -0500
commitfda589487b2cb60e8d69f520e0120eeb7c875915 (patch)
tree0b2373c3d5f3d2ae41206518f956d879147f42a7 /lib/sqlalchemy/dialects/mysql/pymysql.py
parentf5ff86983f9cc7914a89b96da1fd2638677d345b (diff)
downloadsqlalchemy-fda589487b2cb60e8d69f520e0120eeb7c875915.tar.gz
- Updated the "supports_unicode_statements" flag to True for MySQLdb
and Pymysql under Python 2. This refers to the SQL statements themselves, not the parameters, and affects issues such as table and column names using non-ASCII characters. These drivers both appear to support Python 2 Unicode objects without issue in modern versions. fixes #3121
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/pymysql.py')
-rw-r--r--lib/sqlalchemy/dialects/mysql/pymysql.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/pymysql.py b/lib/sqlalchemy/dialects/mysql/pymysql.py
index 31226cea0..8df2ba03f 100644
--- a/lib/sqlalchemy/dialects/mysql/pymysql.py
+++ b/lib/sqlalchemy/dialects/mysql/pymysql.py
@@ -31,8 +31,7 @@ class MySQLDialect_pymysql(MySQLDialect_mysqldb):
driver = 'pymysql'
description_encoding = None
- if py3k:
- supports_unicode_statements = True
+ supports_unicode_statements = True
@classmethod
def dbapi(cls):