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
624ad863
Commit
624ad863
authored
Jul 07, 2022
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-27595 Backport SQL service, introduced by MDEV-19275.
test_sql_service.test fixed.
parent
f8143251
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/suite/plugins/r/test_sql_service.result
mysql-test/suite/plugins/r/test_sql_service.result
+1
-0
mysql-test/suite/plugins/t/test_sql_service.test
mysql-test/suite/plugins/t/test_sql_service.test
+3
-2
No files found.
mysql-test/suite/plugins/r/test_sql_service.result
View file @
624ad863
...
@@ -2,6 +2,7 @@ install plugin test_sql_service soname 'test_sql_service';
...
@@ -2,6 +2,7 @@ install plugin test_sql_service soname 'test_sql_service';
show status like 'test_sql_service_passed';
show status like 'test_sql_service_passed';
Variable_name Value
Variable_name Value
Test_sql_service_passed 1
Test_sql_service_passed 1
reset master;
set global test_sql_service_execute_sql_global= 'create table test.t1 select 1 as a, @@SQL_LOG_BIN';
set global test_sql_service_execute_sql_global= 'create table test.t1 select 1 as a, @@SQL_LOG_BIN';
set global test_sql_service_execute_sql_local= 'insert into test.t1 select 2 as a, @@SQL_LOG_BIN';
set global test_sql_service_execute_sql_local= 'insert into test.t1 select 2 as a, @@SQL_LOG_BIN';
set global test_sql_service_execute_sql_global= 'SET SQL_LOG_BIN=1';
set global test_sql_service_execute_sql_global= 'SET SQL_LOG_BIN=1';
...
...
mysql-test/suite/plugins/t/test_sql_service.test
View file @
624ad863
...
@@ -11,6 +11,7 @@ source include/wait_until_count_sessions.inc;
...
@@ -11,6 +11,7 @@ source include/wait_until_count_sessions.inc;
install
plugin
test_sql_service
soname
'test_sql_service'
;
install
plugin
test_sql_service
soname
'test_sql_service'
;
show
status
like
'test_sql_service_passed'
;
show
status
like
'test_sql_service_passed'
;
reset
master
;
set
global
test_sql_service_execute_sql_global
=
'create table test.t1 select 1 as a, @@SQL_LOG_BIN'
;
set
global
test_sql_service_execute_sql_global
=
'create table test.t1 select 1 as a, @@SQL_LOG_BIN'
;
set
global
test_sql_service_execute_sql_local
=
'insert into test.t1 select 2 as a, @@SQL_LOG_BIN'
;
set
global
test_sql_service_execute_sql_local
=
'insert into test.t1 select 2 as a, @@SQL_LOG_BIN'
;
...
@@ -74,8 +75,8 @@ drop table t1;
...
@@ -74,8 +75,8 @@ drop table t1;
uninstall
plugin
test_sql_service
;
uninstall
plugin
test_sql_service
;
# Check that statements were executed/binlogged in correct order.
# Check that statements were executed/binlogged in correct order.
source
include
/
show_binlog_events
.
inc
;
--
source
include
/
show_binlog_events
.
inc
# --replace_column 2 # 5 #
# --replace_column 2 # 5 #
# --replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/
# --replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/
# SHOW BINLOG EVENTS LIMIT 3,
100
;
# SHOW BINLOG EVENTS LIMIT 3,
5
;
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