mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
The main commit of Andrey Zhakov's patch introducing vurtual(computed) columns.
The original patch has been ameliorated by Sanja and Igor.
This commit is contained in:
@@ -6055,7 +6055,8 @@ bool add_field_to_list(THD *thd, LEX_STRING *field_name, enum_field_types type,
|
||||
LEX_STRING *comment,
|
||||
char *change,
|
||||
List<String> *interval_list, CHARSET_INFO *cs,
|
||||
uint uint_geom_type)
|
||||
uint uint_geom_type,
|
||||
Virtual_column_info *vcol_info)
|
||||
{
|
||||
register Create_field *new_field;
|
||||
LEX *lex= thd->lex;
|
||||
@@ -6141,7 +6142,7 @@ bool add_field_to_list(THD *thd, LEX_STRING *field_name, enum_field_types type,
|
||||
if (!(new_field= new Create_field()) ||
|
||||
new_field->init(thd, field_name->str, type, length, decimals, type_modifier,
|
||||
default_value, on_update_value, comment, change,
|
||||
interval_list, cs, uint_geom_type))
|
||||
interval_list, cs, uint_geom_type, vcol_info))
|
||||
DBUG_RETURN(1);
|
||||
|
||||
lex->alter_info.create_list.push_back(new_field);
|
||||
|
||||
Reference in New Issue
Block a user