mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
The method Type_handler::Column_definition_fix_attributes() was an addition for Type_handler::Column_definition_set_attributes(). The code in virtual implementations of Column_definition_fix_attributes() has now been joined to corresponding virtual implementations of Column_definition_set_attributes(). After this change everything is done in Column_definition_set_attributes(). This makes the code clearer. Previous implementation was rather confusing. For example, for temporal data types: (1) After Column_definition_set_attributes(): - Column_definition::length meant the fractional precision - Column_definition::decimals was set to 0 (2) After Column_definition_fix_attributes(): - Column_definition::length means the full character length - Column_definition::decimals means the fractional precision Now everything gets set to (2) right in Column_definition_set_attributes().
9.9 KiB
9.9 KiB