# Tests for PERFORMANCE_SCHEMA

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

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

-- error ER_WRONG_PERFSCHEMA_USAGE
truncate table performance_schema.threads;

-- error ER_DBACCESS_DENIED_ERROR
ALTER TABLE performance_schema.threads ADD INDEX test_index(PROCESSLIST_ID);

-- error ER_DBACCESS_DENIED_ERROR
CREATE UNIQUE INDEX test_index ON performance_schema.threads(PROCESSLIST_ID);