1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-21537 InnoDB INFORMATION_SCHEMA tables fail to define DEFAULT for ENUM NOT NULL

- Adding a way to define I_S columns without DEFAULT.
- Fixing all ENUM columns in I_S.INNODB* table definitions to have no DEFAULT.
This commit is contained in:
Alexander Barkov
2020-01-21 14:27:17 +04:00
parent c20bf8fd49
commit daf28db027
17 changed files with 123 additions and 31 deletions

View File

@ -18897,6 +18897,16 @@ bool Create_tmp_table::add_schema_fields(THD *thd, TABLE *table,
DBUG_RETURN(true); // EOM
}
field->init(table);
switch (def.def()) {
case DEFAULT_NONE:
field->flags|= NO_DEFAULT_VALUE_FLAG;
break;
case DEFAULT_TYPE_IMPLICIT:
break;
default:
DBUG_ASSERT(0);
break;
}
add_field(table, field, fieldnr, param->force_not_null_cols);
}