From: Michael Trier Date: Mon, 13 Apr 2009 03:05:03 +0000 (+0000) Subject: Corrected the sqlite float type so that it properly gets reflected as a SLFloat type... X-Git-Tag: rel_0_5_4~24 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=eba7328c46202af92de63d2b019bb2e4892255b7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Corrected the sqlite float type so that it properly gets reflected as a SLFloat type. Fixes #1273. --- diff --git a/CHANGES b/CHANGES index 8d09876612..af211a9901 100644 --- 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 diff --git a/lib/sqlalchemy/databases/sqlite.py b/lib/sqlalchemy/databases/sqlite.py index e2156be97f..4abbe80cdb 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 005fad66b4..03e7ecdf35 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(), ),