From: Mike Bayer Date: Fri, 16 Mar 2007 01:48:28 +0000 (+0000) Subject: - added a catchall **kwargs to MSString, to help reflection of X-Git-Tag: rel_0_3_6~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5f16ff2c4273a4149dcee25a68beaba578a73b8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - added a catchall **kwargs to MSString, to help reflection of obscure types (like "varchar() binary" in MS 4.0) --- diff --git a/CHANGES b/CHANGES index 9f72facd3a..9df40b9b3b 100644 --- a/CHANGES +++ b/CHANGES @@ -57,6 +57,10 @@ - auto_setinputsizes defaults to True for Oracle, fixed cases where it improperly propigated bad types. +- mysql: + - added a catchall **kwargs to MSString, to help reflection of + obscure types (like "varchar() binary" in MS 4.0) + - orm: - the full featureset of the SelectResults extension has been merged into a new set of methods available off of Query. These methods diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 1cb41cf768..2df16c361d 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -154,7 +154,7 @@ class MSLongText(MSText): return "LONGTEXT" class MSString(sqltypes.String): - def __init__(self, length=None, *extra): + def __init__(self, length=None, *extra, **kwargs): sqltypes.String.__init__(self, length=length) def get_col_spec(self): return "VARCHAR(%(length)s)" % {'length' : self.length}