| 983 | */ |
| 984 | |
| 985 | static uint enum_value_with_check(THD *thd, TABLE_SHARE *share, |
| 986 | const char *name, uint value, uint limit) |
| 987 | { |
| 988 | if (value < limit) |
| 989 | return value; |
| 990 | |
| 991 | sql_print_warning("%s.frm: invalid value %d for the field %s", |
| 992 | share->normalized_path.str, value, name); |
| 993 | return 0; |
| 994 | } |
| 995 | |
| 996 | |
| 997 | void Column_definition_attributes::frm_pack_basic(uchar *buff) const |
no test coverage detected