Firebird: Floating Points Values infinities

Issue #2012 resolved
Former user created an issue

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)

  1. Log in to comment