Anything that is exact precision in the database should never be handled as "double" in any driver. That is a serious bug and a possible violation of accounting laws in many countries.
That is assuming "double" in this case means "double precision floating point" as in C's double type.