diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-12-10 15:35:00 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-10 19:24:22 +0100 |
commit | 0ea717f51a152afdb3791195c4a25ee0baa2faac (patch) | |
tree | 0eb10fc1413d1583ffdec2c18a66491d7befeec2 /mysql-test/suite/perfschema/t/ddl_replication_applier_configuration.test | |
parent | dfe6e914e58472159f34a8a4c9288ff61eac479f (diff) | |
download | mariadb-git-0ea717f51a152afdb3791195c4a25ee0baa2faac.tar.gz |
P_S 5.7.28
Diffstat (limited to 'mysql-test/suite/perfschema/t/ddl_replication_applier_configuration.test')
-rw-r--r-- | mysql-test/suite/perfschema/t/ddl_replication_applier_configuration.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/suite/perfschema/t/ddl_replication_applier_configuration.test b/mysql-test/suite/perfschema/t/ddl_replication_applier_configuration.test new file mode 100644 index 00000000000..bc7ef8c28ab --- /dev/null +++ b/mysql-test/suite/perfschema/t/ddl_replication_applier_configuration.test @@ -0,0 +1,22 @@ +# Tests for PERFORMANCE_SCHEMA + +# This test verifies the correct behaviour in case of invalid +# usage of DDLs on the table replication_applier_configuration + +--source include/not_embedded.inc +--source include/have_perfschema.inc + +-- error ER_DBACCESS_DENIED_ERROR +ALTER TABLE performance_schema.replication_applier_configuration + ADD COLUMN foo integer; + +-- error ER_WRONG_PERFSCHEMA_USAGE +TRUNCATE TABLE performance_schema.replication_applier_configuration; + +-- error ER_DBACCESS_DENIED_ERROR +ALTER TABLE performance_schema.replication_applier_configuration + ADD INDEX test_index(desired_delay); + +-- error ER_DBACCESS_DENIED_ERROR +CREATE UNIQUE INDEX test_index ON + performance_schema.replication_applier_configuration(desired_delay); |