summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/t/ddl_replication_applier_configuration.test
blob: bc7ef8c28ab6fdaaa0a99d689fd09983ec5e227f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);