From: Mike Bayer Date: Tue, 24 Jul 2007 20:08:20 +0000 (+0000) Subject: restored Float's full constructor to play better with overriding types, i.e. mysql... X-Git-Tag: rel_0_4_6~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b776ad1dea653ac75e86c60855e3410bad116b8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git restored Float's full constructor to play better with overriding types, i.e. mysql.MSFloat --- diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index 4292e9dcc9..ec14598520 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -272,9 +272,9 @@ class Numeric(TypeEngine): class Float(Numeric): def __init__(self, precision = 10, asdecimal=False, **kwargs): - super(Float, self).__init__(asdecimal=asdecimal, **kwargs) self.precision = precision - + self.asdecimal = asdecimal + def adapt(self, impltype): return impltype(precision=self.precision, asdecimal=self.asdecimal)