Commits

Michael Trier committed bb1132e

Corrected the sqlite float type so that it properly gets reflected as a SLFloat type. Fixes #1273.

Comments (0)

Files changed (3)

       binary collation based database. Cleaned up information schema
       since it is only used by mssql now. [ticket:1343]
 
+- sqlite
+    - Corrected the float type so that it correctly maps to a
+      SLFloat type when being reflected. [ticket:1273]
+
 0.5.3
 =====
 - orm

lib/sqlalchemy/databases/sqlite.py

     'DATE': SLDate,
     'DATETIME': SLDateTime,
     'DECIMAL': SLNumeric,
-    'FLOAT': SLNumeric,
+    'FLOAT': SLFloat,
     'INT': SLInteger,
     'INTEGER': SLInteger,
     'NUMERIC': SLNumeric,

test/dialect/sqlite.py

                  ( Numeric(10, 2), sqlite.SLNumeric(10, 2), ),
                  ( DECIMAL, sqlite.SLNumeric(), ),
                  ( DECIMAL(10, 2), sqlite.SLNumeric(10, 2), ),
-                 ( Float, sqlite.SLNumeric(), ),
+                 ( Float, sqlite.SLFloat(), ),
                  ( sqlite.SLNumeric(), ),
                  ( INT, sqlite.SLInteger(), ),
                  ( Integer, sqlite.SLInteger(), ),