From e5f16ff2c4273a4149dcee25a68beaba578a73b8 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 16 Mar 2007 01:48:28 +0000 Subject: [PATCH] - added a catchall **kwargs to MSString, to help reflection of obscure types (like "varchar() binary" in MS 4.0) --- CHANGES | 4 ++++ lib/sqlalchemy/databases/mysql.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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} -- 2.47.2