]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
restored Float's full constructor to play better with overriding types, i.e. mysql...
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jul 2007 20:08:20 +0000 (20:08 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jul 2007 20:08:20 +0000 (20:08 +0000)
lib/sqlalchemy/types.py

index 4292e9dcc9ba8713d52e041909f0146931c3f440..ec1459852093aa2743bb6bcfc08c95f29a5a1264 100644 (file)
@@ -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)