mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
72ba96a48e
Tests with checking metadata or that cannot be run with the view-protocol are excluded from --view-protocol. For tests that do not allow the use of an additional connection, the util connection is disabled with "--disable_service_connection". Also cases with bugs for --view-protocol are disabled.
22 lines
674 B
Text
22 lines
674 B
Text
#
|
|
# Test for show profiles
|
|
# No meaningful check is possible.
|
|
# So it only checks that SET profiling is possible and
|
|
# that SHOW PROFILES, SHOW PROFILE FOR QUERY and SHOW PROFILE CPU FOR QUERY
|
|
# do not cause syntax errors. It also increases code coverage for sql_profile.cc
|
|
|
|
# Tests will be skipped for the view protocol because the view protocol creates
|
|
# an additional util connection and other statistics data
|
|
-- source include/no_view_protocol.inc
|
|
|
|
--source include/have_profiling.inc
|
|
SET profiling = 1;
|
|
SELECT 1;
|
|
--replace_column 2 #
|
|
SHOW PROFILES;
|
|
--disable_result_log
|
|
SHOW PROFILE FOR QUERY 1;
|
|
SHOW PROFILE CPU FOR QUERY 1;
|
|
--enable_result_log
|
|
SET profiling = 0;
|
|
|