diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-03 12:04:51 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-03 12:04:51 -0500 |
commit | 8b08b1a35b85c24349226c34e6834f4f60db3c6f (patch) | |
tree | 5a9f2e63ecc8cb1983b301bb4cd62580bb151926 /lib/sqlalchemy/dialects/mysql/pymysql.py | |
parent | 37d1f8983ce4bfbfd517cf8db7a44ed785c8474f (diff) | |
download | sqlalchemy-8b08b1a35b85c24349226c34e6834f4f60db3c6f.tar.gz |
- Fixed bug which prevented MySQLdb-based dialects (e.g.
pymysql) from working in Py3K, where a check for "connection
charset" would fail due to Py3K's more strict value comparison
rules. The call in question wasn't taking the database
version into account in any case as the server version was
still None at that point, so the method overall has been
simplified to rely upon connection.character_set_name().
[ticket:2933]
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/pymysql.py')
-rw-r--r-- | lib/sqlalchemy/dialects/mysql/pymysql.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/pymysql.py b/lib/sqlalchemy/dialects/mysql/pymysql.py index 74de09c4d..7989203cf 100644 --- a/lib/sqlalchemy/dialects/mysql/pymysql.py +++ b/lib/sqlalchemy/dialects/mysql/pymysql.py @@ -31,6 +31,7 @@ class MySQLDialect_pymysql(MySQLDialect_mysqldb): if py3k: supports_unicode_statements = True + @classmethod def dbapi(cls): return __import__('pymysql') |