Обсуждение: "Money" fields are returned as 'float'.

Поиск
Список
Период
Сортировка

"Money" fields are returned as 'float'.

От
Vernon Cole
Дата:
I ran across this while adding explicit PostgreSQL support to adodbapi.
I am using psqlodbc_09_00_0200 which I downloaded this morning.
When I store a field of type "money", which, IIUC, is stored in an exact format, I get back from ODBC a double float.
This is very interesting, since I cannot use a floating value to input the same field, and thus cannot perform a store of something I am about to read. 

In my humble opinion, you should be accepting and returning a decimal type.
--
Vernon Cole

P.S.: Is this the correct place to make this comment?