40 lines
951 B
Plaintext
40 lines
951 B
Plaintext
# ==== Purpose ====
|
|
#
|
|
# Tests for PERFORMANCE_SCHEMA
|
|
#
|
|
# This test verifies the correct behaviour in case of invalid
|
|
# usage of DMLs on the table log_status.
|
|
#
|
|
# ==== References ====
|
|
#
|
|
# WL#9452: Log Position Lock
|
|
#
|
|
|
|
--disable_result_log
|
|
SELECT * FROM performance_schema.log_status
|
|
LIMIT 1;
|
|
--enable_result_log
|
|
|
|
--error ER_TABLEACCESS_DENIED_ERROR
|
|
INSERT INTO performance_schema.log_status
|
|
SET server_uuid='ABC123';
|
|
|
|
--error ER_TABLEACCESS_DENIED_ERROR
|
|
UPDATE performance_schema.log_status
|
|
SET server_uuid='ABC123' WHERE server_uuid=@@server_uuid;
|
|
|
|
--error ER_TABLEACCESS_DENIED_ERROR
|
|
DELETE FROM performance_schema.log_status
|
|
WHERE server_uuid=@@server_uuid;
|
|
|
|
--error ER_TABLEACCESS_DENIED_ERROR
|
|
DELETE FROM performance_schema.log_status;
|
|
|
|
-- error ER_TABLEACCESS_DENIED_ERROR
|
|
LOCK TABLES performance_schema.log_status READ;
|
|
UNLOCK TABLES;
|
|
|
|
-- error ER_TABLEACCESS_DENIED_ERROR
|
|
LOCK TABLES performance_schema.log_status WRITE;
|
|
UNLOCK TABLES;
|