Class Innodb::DataType::DecimalType
In: lib/innodb/data_type.rb
Parent: Object

MySQL‘s Fixed-Point Type (DECIMAL), stored in InnoDB as a binary string.

Methods

new   value  

Constants

MAX_DIGITS_PER_INTEGER = 9   The value is stored as a sequence of signed big-endian integers, each representing up to 9 digits of the integral and fractional parts. The first integer of the integral part and/or the last integer of the fractional part might be compressed (or packed) and are of variable length. The remaining integers (if any) are uncompressed and 32 bits wide.
BYTES_PER_DIGIT = [0, 1, 1, 2, 2, 3, 3, 4, 4, 4]

Attributes

name  [R] 
width  [R] 

Public Class methods

Public Instance methods

[Validate]