Skip to content

Commit

Permalink
MDEV-27595 Backport SQL service, introduced by MDEV-19275.
Browse files Browse the repository at this point in the history
test_sql_service.test fixed.
  • Loading branch information
Alexey Botchkov committed Nov 5, 2023
1 parent f814325 commit 624ad86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions mysql-test/suite/plugins/r/test_sql_service.result
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ install plugin test_sql_service soname 'test_sql_service';
show status like 'test_sql_service_passed';
Variable_name Value
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_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';
Expand Down
5 changes: 3 additions & 2 deletions mysql-test/suite/plugins/t/test_sql_service.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ source include/wait_until_count_sessions.inc;

install plugin test_sql_service soname 'test_sql_service';
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_local= 'insert into test.t1 select 2 as a, @@SQL_LOG_BIN';
Expand Down Expand Up @@ -74,8 +75,8 @@ drop table t1;
uninstall plugin test_sql_service;

# 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_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;

0 comments on commit 624ad86

Please sign in to comment.