diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-01-03 21:11:12 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-01-03 21:11:12 -0500 |
commit | 6e023b16653b0a2e355a1858d57ff01d38ab05dc (patch) | |
tree | 25feb6696c0929f63dd5814d8021deb1e73c11e3 /test/dialect/test_firebird.py | |
parent | 49ede80b05efbb3a65fc70f31d02c87c7b842886 (diff) | |
download | sqlalchemy-6e023b16653b0a2e355a1858d57ff01d38ab05dc.tar.gz |
- Firebird numeric type now checks for Decimal explicitly,
lets float() pass right through, thereby allowing
special values such as float('inf'). [ticket:2012]
Diffstat (limited to 'test/dialect/test_firebird.py')
-rw-r--r-- | test/dialect/test_firebird.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/dialect/test_firebird.py b/test/dialect/test_firebird.py index ce708936b..532a93ed0 100644 --- a/test/dialect/test_firebird.py +++ b/test/dialect/test_firebird.py @@ -319,6 +319,20 @@ class CompileTest(TestBase, AssertsCompiledSQL): for type_, args, kw, res in columns: self.assert_compile(type_(*args, **kw), res) +class TypesTest(TestBase): + __only_on__ = 'firebird' + + @testing.provide_metadata + def test_infinite_float(self): + t = Table('t', metadata, + Column('data', Float) + ) + metadata.create_all() + t.insert().execute(data=float('inf')) + eq_(t.select().execute().fetchall(), + [(float('inf'),)] + ) + class MiscTest(TestBase): __only_on__ = 'firebird' |