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

Function check_that_all_fields_are_given_values

sql/sql_insert.cc:2573–2586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2571
2572
2573int check_that_all_fields_are_given_values(THD *thd, TABLE *entry, TABLE_LIST *table_list)
2574{
2575 int err= 0;
2576 MY_BITMAP *write_set= entry->write_set;
2577
2578 for (Field **field=entry->field ; *field ; field++)
2579 {
2580 if (!bitmap_is_set(write_set, (*field)->field_index) &&
2581 !(*field)->vcol_info &&
2582 has_no_default_value(thd, *field, table_list))
2583 err=1;
2584 }
2585 return thd->abort_on_warning ? err : 0;
2586}
2587
2588/*****************************************************************************
2589 Handling of delayed inserts

Callers 3

mysql_insertFunction · 0.85
prepareMethod · 0.85
mysql_loadFunction · 0.85

Calls 2

bitmap_is_setFunction · 0.85
has_no_default_valueFunction · 0.85

Tested by

no test coverage detected