mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-19629 post-merge fixes
* it isn't "pfs" function, don't call it Item_func_pfs, don't use item_pfsfunc.* * tests don't depend on performance schema, put in the main suite * inherit from Item_str_ascii_func * use connection collation, not utf8mb3_general_ci * set result length in fix_length_and_dec * do not set maybe_null * use my_snprintf() where possible * don't set m_value.ptr on every invocation * update sys schema to use the format_pico_time() * len must be size_t (compilation error on Windows) * the correct function name for double->double is fabs() * drop volatile hack
This commit is contained in:
@ -196,8 +196,8 @@ CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE statement_performance_analyze
|
||||
-> SELECT sys.format_statement(DIGEST_TEXT) AS query,
|
||||
-> SCHEMA_NAME AS db,
|
||||
-> COUNT_STAR AS exec_count,
|
||||
-> sys.format_time(SUM_TIMER_WAIT) AS total_latency,
|
||||
-> sys.format_time(AVG_TIMER_WAIT) AS avg_latency,
|
||||
-> format_pico_time(SUM_TIMER_WAIT) AS total_latency,
|
||||
-> format_pico_time(AVG_TIMER_WAIT) AS avg_latency,
|
||||
-> ROUND(IFNULL(SUM_ROWS_SENT / NULLIF(COUNT_STAR, 0), 0)) AS rows_sent_avg,
|
||||
-> ROUND(IFNULL(SUM_ROWS_EXAMINED / NULLIF(COUNT_STAR, 0), 0)) AS rows_examined_avg,
|
||||
-> ROUND(IFNULL(SUM_ROWS_AFFECTED / NULLIF(COUNT_STAR, 0), 0)) AS rows_affected_avg,
|
||||
@ -720,4 +720,4 @@ HAVING percentile > 0.95
|
||||
END IF;
|
||||
END$$
|
||||
|
||||
DELIMITER ;
|
||||
DELIMITER ;
|
||||
|
Reference in New Issue
Block a user