diff options
author | Robert Leftwich <rtl@pobox.com> | 2005-12-01 12:51:38 +0000 |
---|---|---|
committer | Robert Leftwich <rtl@pobox.com> | 2005-12-01 12:51:38 +0000 |
commit | 9ec6a9b8e336caf6ef79451f1154f40fc5e771a1 (patch) | |
tree | 8302755a21f48ae8af5845c281b21a8d95b79a46 /lib/sqlalchemy/databases/sqlite.py | |
parent | 2a1098f831a0f9b3f9a01fa5cd2a46789b533a61 (diff) | |
download | sqlalchemy-9ec6a9b8e336caf6ef79451f1154f40fc5e771a1.tar.gz |
Added float type to support real/double precision/float8/etc sql data types. Added columns.py as unit test. Modified sqlite.py, postgres.py and mysql.py to use the new type where appropriate (note -Oracle is unchanged at present).
Diffstat (limited to 'lib/sqlalchemy/databases/sqlite.py')
-rw-r--r-- | lib/sqlalchemy/databases/sqlite.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/databases/sqlite.py b/lib/sqlalchemy/databases/sqlite.py index 1a00c555b..845efdf33 100644 --- a/lib/sqlalchemy/databases/sqlite.py +++ b/lib/sqlalchemy/databases/sqlite.py @@ -68,6 +68,7 @@ class SLBoolean(sqltypes.Boolean): colspecs = { sqltypes.Integer : SLInteger, sqltypes.Numeric : SLNumeric, + sqltypes.Float : SLNumeric, sqltypes.DateTime : SLDateTime, sqltypes.String : SLString, sqltypes.Binary : SLBinary, @@ -82,6 +83,7 @@ pragma_names = { 'CHAR' : SLChar, 'TEXT' : SLText, 'NUMERIC' : SLNumeric, + 'FLOAT' : SLNumeric, 'TIMESTAMP' : SLDateTime, 'BLOB' : SLBinary, } |