Skip to content Skip to sidebar Skip to footer

Freetds Translating Ms Sql Money Type To Python Float, Not Decimal

I am connecting to an MS SQL Server db from Python in Linux. I am connecting via pyodbc using the FreeTDS driver. When I return a money field from MSSQL it comes through as a flo

Solution 1:

You could always just convert it to Decimal when it comes back...

Solution 2:

It was a bug in FreeTDS. The bug has been fixed in the CVS head of FreeTDS as of August 4, 2010 (thanks Freddy Ziglio). See my post on the web2py message board for more info.

Post a Comment for "Freetds Translating Ms Sql Money Type To Python Float, Not Decimal"