Firebird: Floating Points Values infinities
Issue #2012
resolved
If I try to write an infinite floating point value to the database, I get an error.
The problem traces to sqlalchemly.dialects.firebird.kinterbasdb._FBNumeric_kinterbasdb which converts the floating point to a string before passing it off to the database. Firebird does not accept 'inf' or '-inf' as valid pointing point values.
I don't know why the code converts stuff to strings. A monkey patch to make it stop doing that seems to make things work fine for me.
Comments (2)
-
repo owner -
repo owner - removed milestone
Removing milestone: 0.6.6 (automated comment)
- Log in to comment
The string conversion is to accept Python Decimal objects.
The check is now narrowed down to Decimal only, more expensive check but there you go.
Thanks for the test case !
6e023b16653b0a2e355a1858d57ff01d38ab05dc in 0.7, diff:@a40124fcb25cc23fa8873c8e2dc3e558672b5439:5d3b203f64764cf704b2d78496039f9fbcbacbca in 0.6