1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Adding Type_std_attributes to reduce some duplicate code.

TODO: move some methods from Item to Type_std_attributes.
This commit is contained in:
Alexander Barkov
2015-04-25 00:54:00 +04:00
parent 04fb09d781
commit ecb009b2cb
4 changed files with 54 additions and 50 deletions

View File

@@ -2654,13 +2654,10 @@ void Item_func_if::fix_after_pullout(st_select_lex *new_parent, Item **ref)
void Item_func_if::cache_type_info(Item *source)
{
collation.set(source->collation);
Type_std_attributes::set(source);
cached_field_type= source->field_type();
cached_result_type= source->result_type();
decimals= source->decimals;
max_length= source->max_length;
maybe_null= source->maybe_null;
unsigned_flag= source->unsigned_flag;
}