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
series as well. For changes that are specific to 1.0 with an emphasis
on compatibility concerns, see :doc:`/changelog/migration_10`.
+ .. change::
+ :tags: feature, mysql
+ :tickets: 3121
+
+ 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.
+
.. change::
:tags: bug, mysql
:tickets: 3263
class MySQLDialect_mysqldb(MySQLDialect):
driver = 'mysqldb'
- supports_unicode_statements = False
+ supports_unicode_statements = True
supports_sane_rowcount = True
supports_sane_multi_rowcount = True
driver = 'pymysql'
description_encoding = None
- if py3k:
- supports_unicode_statements = True
+ supports_unicode_statements = True
@classmethod
def dbapi(cls):