diff options
Diffstat (limited to 'mysql-test/suite/perfschema/t/ddl_replication_group_member_stats.test')
-rw-r--r-- | mysql-test/suite/perfschema/t/ddl_replication_group_member_stats.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/suite/perfschema/t/ddl_replication_group_member_stats.test b/mysql-test/suite/perfschema/t/ddl_replication_group_member_stats.test new file mode 100644 index 00000000000..eae5ed1281a --- /dev/null +++ b/mysql-test/suite/perfschema/t/ddl_replication_group_member_stats.test @@ -0,0 +1,21 @@ +# Tests for PERFORMANCE_SCHEMA +# This test verifies the correct behaviour in case of invalid +# Usage of DDLs on the table replication_group_member_stats. + +--source include/not_embedded.inc +--source include/have_perfschema.inc + +--error ER_DBACCESS_DENIED_ERROR +ALTER TABLE performance_schema.replication_group_member_stats + ADD COLUMN foo INTEGER; + +--error ER_WRONG_PERFSCHEMA_USAGE +TRUNCATE TABLE performance_schema.replication_group_member_stats; + +--error ER_DBACCESS_DENIED_ERROR +ALTER TABLE performance_schema.replication_group_member_stats + ADD INDEX test_index(Member_Id); + +--error ER_DBACCESS_DENIED_ERROR +CREATE UNIQUE INDEX test_index + ON performance_schema.replication_group_member_stats(Member_Id); |