Convert from decimal to binary representation. More...
Classes | |
| class | Decimal |
| class | Time |
| class | Uuid |
Typedefs | |
| typedef int64_t | datetime_t |
| typedef int64_t | date_t |
Enumerations | |
| enum | timestamp_t { DRIZZLE_TIMESTAMP_NONE = -2, DRIZZLE_TIMESTAMP_ERROR = -1, DRIZZLE_TIMESTAMP_DATE = 0, DRIZZLE_TIMESTAMP_DATETIME = 1, DRIZZLE_TIMESTAMP_TIME = 2 } |
| enum | cut_t { VALID = 0, CUT = 1, INVALID = 2 } |
Functions | |
| bool | convert (String &destination, const bool source, bool ansi_display) |
| bool | convert (bool &destination, const char *source, const size_t source_length) |
| bool | convert (bool &destination, String &source) |
| bool | is_valid (const datetime_t &value) |
Convert from decimal to binary representation.
| [in] | mask | error processing mask |
| [in] | d | number for conversion |
| [out] | bin | pointer to buffer where to write result |
| [in] | prec | overall number of decimal digits |
| [in] | scale | number of decimal digits after decimal point |
| E_DEC_OK | |
| E_DEC_TRUNCATED | |
| E_DEC_OVERFLOW |