summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-01-22 21:08:21 +0000
committerJason Kirtland <jek@discorporate.us>2008-01-22 21:08:21 +0000
commitb3cc2f7e0c308354f3f939c47c382a2d11845d4f (patch)
tree6da3c9cf38346942b868555e696068c19b8b505e /lib/sqlalchemy/databases/mysql.py
parent5bc0fe9e16e94dd2ed16b7bf393cef0b9a4ceb25 (diff)
downloadsqlalchemy-b3cc2f7e0c308354f3f939c47c382a2d11845d4f.tar.gz
- 2.3 fixup part three: 100% on postgres, mysql
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
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]) != ("'", "'"):