From: Mike Bayer Date: Sat, 6 May 2006 18:12:19 +0000 (+0000) Subject: had unicode check improperly placed X-Git-Tag: rel_0_2_0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf0f6bfe4ae7cce8e952b64938eb74a03b315cef;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git had unicode check improperly placed --- diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 6fafd9e7b2..3fc3752c7b 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -404,10 +404,11 @@ class ForeignKey(SchemaItem): object representing the relationship, or just its string name given as "tablename.columnname". schema can be specified as "schemaname.tablename.columnname" """ - self._colspec = column - self._column = None if isinstance(column, unicode): column = str(column) + self._colspec = column + self._column = None + def __repr__(self): return "ForeignKey(%s)" % repr(self._get_colspec())