diff options
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/field.cc b/sql/field.cc index 2b4ec6eeb92..ec646e930a0 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -8030,6 +8030,16 @@ void Field_enum::sql_type(String &res) const } +Field *Field_enum::new_field(MEM_ROOT *root, struct st_table *new_table, + bool keep_type) +{ + Field_enum *res= (Field_enum*) Field::new_field(root, new_table, keep_type); + if (res) + res->typelib= copy_typelib(root, typelib); + return res; +} + + /* set type. This is a string which can have a collection of different values. |