| 2677 | */ |
| 2678 | |
| 2679 | static 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 | /** |
no test coverage detected