From b3cc2f7e0c308354f3f939c47c382a2d11845d4f Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Tue, 22 Jan 2008 21:08:21 +0000 Subject: - 2.3 fixup part three: 100% on postgres, mysql --- lib/sqlalchemy/databases/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') 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]) != ("'", "'"): -- cgit v1.2.1