MySQL Forums
Forum List  »  NDB clusters

Re: NdbApi setValue does not support decimal type?
Posted by: Bernhard Ocklin
Date: June 08, 2012 03:09AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: NdbApi setValue does not support decimal type?
1231
June 08, 2012 03:09AM


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.