summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/perfschema/t/ddl_session_status.test
blob: 5dfa74a0d36e6bf08b27a605b5f6894a2c224905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Tests for PERFORMANCE_SCHEMA

--source include/not_embedded.inc
--source include/have_perfschema.inc

-- error ER_DBACCESS_DENIED_ERROR
alter table performance_schema.session_status
  add column foo integer;

-- error ER_WRONG_PERFSCHEMA_USAGE
truncate table performance_schema.session_status;

-- error ER_DBACCESS_DENIED_ERROR
ALTER TABLE performance_schema.session_status
  ADD INDEX test_index(VARIABLE_NAME);

-- error ER_DBACCESS_DENIED_ERROR
CREATE UNIQUE INDEX test_index
  ON performance_schema.session_status(VARIABLE_NAME);