]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected the sqlite float type so that it properly gets reflected as a SLFloat type...
authorMichael Trier <mtrier@gmail.com>
Mon, 13 Apr 2009 03:05:03 +0000 (03:05 +0000)
committerMichael Trier <mtrier@gmail.com>
Mon, 13 Apr 2009 03:05:03 +0000 (03:05 +0000)
CHANGES
lib/sqlalchemy/databases/sqlite.py
test/dialect/sqlite.py

diff --git a/CHANGES b/CHANGES
index 8d09876612433306980f193b7d39bc69336596d9..af211a99013a0cfd41337c4be67e9cc823d3b60e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -64,6 +64,10 @@ CHANGES
       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
index e2156be97f14ee1439b259cda3deb034a35c04c2..4abbe80cdb7d0a93f870fa2997de4fe9e9cc225d 100644 (file)
@@ -329,7 +329,7 @@ ischema_names = {
     'DATE': SLDate,
     'DATETIME': SLDateTime,
     'DECIMAL': SLNumeric,
-    'FLOAT': SLNumeric,
+    'FLOAT': SLFloat,
     'INT': SLInteger,
     'INTEGER': SLInteger,
     'NUMERIC': SLNumeric,
index 005fad66b4652bcb45d593f02d326b03990d23f9..03e7ecdf35cfbe4d19c86a760faf85b0bce8e05a 100644 (file)
@@ -73,7 +73,7 @@ class TestTypes(TestBase, AssertsExecutionResults):
                  ( 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(), ),