blob: 822600ce6d423f7235b58d8a8c00b8dea711a5f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Tests for PERFORMANCE_SCHEMA
--source include/not_embedded.inc
--source include/have_perfschema.inc
-- error ER_DBACCESS_DENIED_ERROR
alter table performance_schema.events_stages_current add column foo integer;
truncate table performance_schema.events_stages_current;
-- error ER_DBACCESS_DENIED_ERROR
ALTER TABLE performance_schema.events_stages_current ADD INDEX test_index(EVENT_ID);
-- error ER_DBACCESS_DENIED_ERROR
CREATE UNIQUE INDEX test_index ON performance_schema.events_stages_current(EVENT_ID);
--disable_query_log
# Checking if the column WORK_COMPLETED and WORK_ESTIMATED exists
select * from information_schema.columns where TABLE_NAME = 'events_stages_current' and column_name in ('WORK_COMPLETED','WORK_ESTIMATED')
and table_schema='performance_schema';
--enable_query_log
|