Push post-execution warnings, which may be some kinds of aggregate messages like number of times max_sort_length was reached during sorting/grouping */
| 8948 | like number of times max_sort_length was reached during sorting/grouping |
| 8949 | */ |
| 8950 | void THD::push_final_warnings() |
| 8951 | { |
| 8952 | if (num_of_strings_sorted_on_truncated_length) |
| 8953 | { |
| 8954 | /* |
| 8955 | WARN_SORTING_ON_TRUNCATED_LENGTH is not considered important enough to be |
| 8956 | elevated to the ERROR level, so reset abort_on_warning flag before pushing |
| 8957 | */ |
| 8958 | bool saved_abort_on_warning= abort_on_warning; |
| 8959 | abort_on_warning= false; |
| 8960 | push_warning_printf(this, Sql_condition::WARN_LEVEL_WARN, |
| 8961 | WARN_SORTING_ON_TRUNCATED_LENGTH, |
| 8962 | ER_THD(this, WARN_SORTING_ON_TRUNCATED_LENGTH), |
| 8963 | num_of_strings_sorted_on_truncated_length, |
| 8964 | variables.max_sort_length); |
| 8965 | num_of_strings_sorted_on_truncated_length= 0; |
| 8966 | abort_on_warning= saved_abort_on_warning; |
| 8967 | } |
| 8968 | } |
| 8969 | |
| 8970 | |
| 8971 | void AUTHID::copy(MEM_ROOT *mem_root, const LEX_CSTRING *user_name, |
no test coverage detected