Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
946dafb2
Commit
946dafb2
authored
Dec 16, 2021
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-26925 add test that there are no triggers in sys schema.
parent
30bf0bca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/suite/sysschema/r/t_sys_config.result
mysql-test/suite/sysschema/r/t_sys_config.result
+3
-0
mysql-test/suite/sysschema/t/t_sys_config.test
mysql-test/suite/sysschema/t/t_sys_config.test
+1
-2
No files found.
mysql-test/suite/sysschema/r/t_sys_config.result
View file @
946dafb2
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
...
...
mysql-test/suite/sysschema/t/t_sys_config.test
View file @
946dafb2
--
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment