Commit f3ad96a3 authored by Sergei Golubchik's avatar Sergei Golubchik

fix the bad merge

this fixes vcol.upgrade failure
parent c65cce36
...@@ -1011,13 +1011,6 @@ bool Item_field::check_field_expression_processor(void *arg) ...@@ -1011,13 +1011,6 @@ bool Item_field::check_field_expression_processor(void *arg)
Field *org_field= (Field*) arg; Field *org_field= (Field*) arg;
if (field->flags & NO_DEFAULT_VALUE_FLAG) if (field->flags & NO_DEFAULT_VALUE_FLAG)
return 0; return 0;
if (field->flags & AUTO_INCREMENT_FLAG)
{
my_error(ER_EXPRESSION_REFERS_TO_UNINIT_FIELD,
MYF(0),
org_field->field_name.str, field->field_name.str);
return 1;
}
if ((field->default_value && field->default_value->flags) || field->vcol_info) if ((field->default_value && field->default_value->flags) || field->vcol_info)
{ {
if (field == org_field || if (field == org_field ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment