1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00
Files
mariadb/mysql-test/suite/perfschema/r/dml_session_connect_attrs.result
Haidong Ji 528abc749e MDEV-25325 built-in documentation for performance_schema tables
Improve documentation of performance_schema tables by appending COLUMN
comments to tables. Additionally improve test coverage and update corresponding
tests.
2021-09-07 08:45:19 +03:00

37 lines
1.8 KiB
Plaintext

SELECT * FROM performance_schema.session_connect_attrs
LIMIT 1;
SELECT * FROM performance_schema.session_connect_attrs
where ATTR_NAME='FOO' OR ATTR_VALUE='BAR';
INSERT INTO performance_schema.session_connect_attrs
SET ATTR_NAME='FOO', ATTR_VALUE='BAR',
ORDINAL_POSITION=100, PROCESS_ID=102;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'session_connect_attrs'
UPDATE performance_schema.session_connect_attrs
SET ATTR_NAME='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'session_connect_attrs'
UPDATE performance_schema.session_connect_attrs
SET ATTR_NAME='FOO' WHERE ATTR_VALUE='BAR';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'session_connect_attrs'
DELETE FROM performance_schema.session_connect_attrs
WHERE ATTR_VALUE='BAR';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_connect_attrs'
DELETE FROM performance_schema.session_connect_attrs;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_connect_attrs'
LOCK TABLES performance_schema.session_connect_attrs READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_connect_attrs'
UNLOCK TABLES;
LOCK TABLES performance_schema.session_connect_attrs WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_connect_attrs'
UNLOCK TABLES;
#
# MDEV-25325 column_comment for performance_schema tables
#
select column_name, column_comment
from information_schema.columns
where table_schema='performance_schema' and table_name='session_connect_attrs';
column_name column_comment
PROCESSLIST_ID Session connection identifier.
ATTR_NAME Attribute name.
ATTR_VALUE Attribute value.
ORDINAL_POSITION Order in which attribute was added to the connection attributes.