diff options
author | Roger Demetrescu <roger.demetrescu@gmail.com> | 2007-10-12 12:53:33 +0000 |
---|---|---|
committer | Roger Demetrescu <roger.demetrescu@gmail.com> | 2007-10-12 12:53:33 +0000 |
commit | 7f360074771ec455ae0eb3242e2945d7850398df (patch) | |
tree | a8e78ffef52035cb187530d55ac87256daa791d3 /lib/sqlalchemy/databases/firebird.py | |
parent | 69ba01265e892fb4abeb2d9a427de53fd1ab6232 (diff) | |
download | sqlalchemy-7f360074771ec455ae0eb3242e2945d7850398df.tar.gz |
firebird: Fixed reflection for Integer and Numeric (after introducing Float column type). Need to review 'column_func' from reflecttable() and write some unit tests...
Diffstat (limited to 'lib/sqlalchemy/databases/firebird.py')
-rw-r--r-- | lib/sqlalchemy/databases/firebird.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/firebird.py b/lib/sqlalchemy/databases/firebird.py index a427c7220..71c2d3df0 100644 --- a/lib/sqlalchemy/databases/firebird.py +++ b/lib/sqlalchemy/databases/firebird.py @@ -223,7 +223,7 @@ class FBDialect(default.DefaultDialect): column_func = { 14 : lambda r: sqltypes.String(r['FLEN']), # TEXT 7 : lambda r: sqltypes.Integer(), # SHORT - 8 : lambda r: sqltypes.Integer(), # LONG + 8 : lambda r: r['FPREC']==0 and sqltypes.Integer() or sqltypes.Numeric(precision=r['FPREC'], length=r['FSCALE'] * -1), #INT or NUMERIC 9 : lambda r: sqltypes.Float(), # QUAD 10 : lambda r: sqltypes.Float(), # FLOAT 27 : lambda r: sqltypes.Float(), # DOUBLE |