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

Method push_final_warnings

sql/sql_class.cc:8950–8968  ·  view source on GitHub ↗

Push post-execution warnings, which may be some kinds of aggregate messages like number of times max_sort_length was reached during sorting/grouping */

Source from the content-addressed store, hash-verified

8948 like number of times max_sort_length was reached during sorting/grouping
8949*/
8950void 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
8971void AUTHID::copy(MEM_ROOT *mem_root, const LEX_CSTRING *user_name,

Callers 4

mysql_insertFunction · 0.80
send_eofMethod · 0.80
mysql_selectFunction · 0.80
executeMethod · 0.80

Calls 1

push_warning_printfFunction · 0.85

Tested by

no test coverage detected