Re: NdbApi setValue does not support decimal type?
If you want to store decimals you need to write them in a special format. You can actually easiest check how to read and write data types by downloading our source packages and reading there. The storage/ndb/memcache/src/DataTypeHandler.cc file contains many easy to read conversion functions. Among others also these:
dth_encode_decimal() / dth_decode_decimal()
They use functions defined here:
include/util/decimal_utils.hpp
Subject
Views
Written By
Posted
2032
June 08, 2012 02:13AM
Re: NdbApi setValue does not support decimal type?
1232
June 08, 2012 03:09AM
982
June 08, 2012 03:57AM
1651
June 10, 2012 08:28PM
1023
June 11, 2012 07:33AM
1185
June 12, 2012 08:34PM
1225
June 18, 2012 01:09AM
906
June 15, 2012 12:16AM
1167
June 15, 2012 01:38AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.