MCPcopy Create free account
hub / github.com/MariaDB/server / enum_value_with_check

Function enum_value_with_check

sql/table.cc:985–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983*/
984
985static 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
997void Column_definition_attributes::frm_pack_basic(uchar *buff) const

Callers 1

Calls 1

sql_print_warningFunction · 0.70

Tested by

no test coverage detected