2010-01-11 18:47:27 -07:00
|
|
|
# Tests for PERFORMANCE_SCHEMA
|
|
|
|
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
--source include/have_perfschema.inc
|
|
|
|
|
|
|
|
-- error ER_DBACCESS_DENIED_ERROR
|
2010-11-03 16:42:33 +01:00
|
|
|
alter table performance_schema.threads add column foo integer;
|
2010-01-11 18:47:27 -07:00
|
|
|
|
|
|
|
-- error ER_WRONG_PERFSCHEMA_USAGE
|
2010-11-03 16:42:33 +01:00
|
|
|
truncate table performance_schema.threads;
|
2010-01-11 18:47:27 -07:00
|
|
|
|
|
|
|
-- error ER_DBACCESS_DENIED_ERROR
|
2012-08-14 17:23:34 +03:00
|
|
|
ALTER TABLE performance_schema.threads ADD INDEX test_index(PROCESSLIST_ID);
|
2010-01-11 18:47:27 -07:00
|
|
|
|
|
|
|
-- error ER_DBACCESS_DENIED_ERROR
|
2012-08-14 17:23:34 +03:00
|
|
|
CREATE UNIQUE INDEX test_index ON performance_schema.threads(PROCESSLIST_ID);
|
2010-01-11 18:47:27 -07:00
|
|
|
|