4107
4107
my_error(ER_BAD_FIELD_ERROR, MYF(0), def->change, table->s->table_name.str);
4111
4111
Check that the DATE/DATETIME not null field we are going to add is
4112
4112
either has a default value or the '0000-00-00' is allowed by the
4114
4114
If the '0000-00-00' value isn't allowed then raise the error_if_not_empty
4115
4115
flag to allow ALTER Table only if the table to be altered is empty.
4117
4117
if ((def->sql_type == DRIZZLE_TYPE_DATE ||
4118
4118
def->sql_type == DRIZZLE_TYPE_DATETIME) &&
4127
4127
new_create_list.push_back(def);