diff options
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index e7e3ec069..e01cec2ab 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -2156,7 +2156,7 @@ class MySQLSchemaReflector(object): default = spec.get('default', None) if default is not None and default != 'NULL': # Defaults should be in the native charset for the moment - default = default.decode(charset) + default = default.encode(charset) if type_ == 'timestamp': # can't be NULL for TIMESTAMPs if (default[0], default[-1]) != ("'", "'"): |