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

Function do_skip_row_indicator

sql/sql_trigger.cc:2679–2698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2677*/
2678
2679static inline bool do_skip_row_indicator(Diagnostics_area *da,
2680 bool *skip_row_indicator,
2681 trg_action_time_type time_type)
2682{
2683 if (!skip_row_indicator)
2684 return false;
2685
2686 if (time_type == TRG_ACTION_BEFORE &&
2687 /*
2688 The '02' class signals a 'no data' condition, the subclass '02TRG'
2689 means 'no data in trigger' and this condition shouldn't be treated
2690 as an error.
2691 */
2692 strcmp(da->get_sqlstate(), "02TRG") == 0)
2693 {
2694 *skip_row_indicator= true;
2695 return true;
2696 }
2697 return false;
2698}
2699
2700
2701/**

Callers 1

process_triggersMethod · 0.85

Calls 1

get_sqlstateMethod · 0.45

Tested by

no test coverage detected