Commit 946dafb2 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-26925 add test that there are no triggers in sys schema.

parent 30bf0bca
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_SCHEMA='sys';
COUNT(*)
0
DESC sys.sys_config;
Field Type Null Key Default Extra
variable varchar(128) NO PRI NULL
......
-- source include/not_embedded.inc
# Tests for sys schema
# Verify the sys.sys_config table is as expected
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_SCHEMA='sys';
DESC sys.sys_config;
SELECT variable, value, set_by FROM sys.sys_config ORDER BY 1;
......@@ -11,7 +11,6 @@ UPDATE sys.sys_config SET value = 128 WHERE variable = 'statement_truncate_len';
SELECT variable, value, set_by FROM sys.sys_config ORDER BY 1;
# Ensure the sys.sys_config_insert_set_user trigger functions correctly
INSERT INTO sys.sys_config (variable, value) VALUES ('foo', 'bar');
SELECT variable, value, set_by FROM sys.sys_config ORDER BY 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment