mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.6.22
This commit is contained in:
98
mysql-test/suite/perfschema/t/unary_digest.test
Normal file
98
mysql-test/suite/perfschema/t/unary_digest.test
Normal file
@ -0,0 +1,98 @@
|
||||
# ----------------------------------------------------
|
||||
# Tests for the performance schema statement Digests.
|
||||
# ----------------------------------------------------
|
||||
|
||||
# Test case to show behavior of statements digest when
|
||||
# statement-digest-size is 0
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
--source ../include/no_protocol.inc
|
||||
|
||||
TRUNCATE TABLE performance_schema.events_statements_summary_by_digest;
|
||||
|
||||
--disable_query_log
|
||||
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select 1 from expect_unary;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select +1 from expect_unary;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select -1 from expect_unary;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select ++++++++++++++++++++++++++++++++++++++++++++++++1 from expect_unary;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select ------------------------------------------------1 from expect_unary;
|
||||
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select 0+1 from expect_binary;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select 0-1 from expect_binary;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select 0 ++++++++++++++++++++++++++++++++++++++++++++++++1 from expect_binary;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select 0 ------------------------------------------------1 from expect_binary;
|
||||
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, 0, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, 0, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, 0, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, -1, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, -1, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, -1, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, +1, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, +1, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (0, +1, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, 0, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, 0, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, 0, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, -1, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, -1, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, -1, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, +1, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, +1, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (-1, +1, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, 0, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, 0, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, 0, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, -1, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, -1, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, -1, +1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, +1, 0);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, +1, -1);
|
||||
--error ER_NO_SUCH_TABLE
|
||||
insert into expect_full_reduce values (+1, +1, +1);
|
||||
|
||||
--error ER_NO_SUCH_TABLE
|
||||
select a-b, a+b, -a, -b, +a, +b from expect_unchanged;
|
||||
|
||||
--enable_query_log
|
||||
|
||||
SELECT SCHEMA_NAME, DIGEST_TEXT, COUNT_STAR
|
||||
FROM performance_schema.events_statements_summary_by_digest;
|
||||
|
Reference in New Issue
Block a user