diff options
author | Michael Trier <mtrier@gmail.com> | 2009-04-13 03:05:03 +0000 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2009-04-13 03:05:03 +0000 |
commit | eba7328c46202af92de63d2b019bb2e4892255b7 (patch) | |
tree | 79d09eefb7b97a893949053534138499c67ec964 | |
parent | e14734c8dd35dda06756496d0050c976cd90c5ab (diff) | |
download | sqlalchemy-eba7328c46202af92de63d2b019bb2e4892255b7.tar.gz |
Corrected the sqlite float type so that it properly gets reflected as a SLFloat type. Fixes #1273.
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | lib/sqlalchemy/databases/sqlite.py | 2 | ||||
-rw-r--r-- | test/dialect/sqlite.py | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -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 diff --git a/lib/sqlalchemy/databases/sqlite.py b/lib/sqlalchemy/databases/sqlite.py index e2156be97..4abbe80cd 100644 --- a/lib/sqlalchemy/databases/sqlite.py +++ b/lib/sqlalchemy/databases/sqlite.py @@ -329,7 +329,7 @@ ischema_names = { 'DATE': SLDate, 'DATETIME': SLDateTime, 'DECIMAL': SLNumeric, - 'FLOAT': SLNumeric, + 'FLOAT': SLFloat, 'INT': SLInteger, 'INTEGER': SLInteger, 'NUMERIC': SLNumeric, diff --git a/test/dialect/sqlite.py b/test/dialect/sqlite.py index 005fad66b..03e7ecdf3 100644 --- a/test/dialect/sqlite.py +++ b/test/dialect/sqlite.py @@ -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(), ), |