403Webshell
Server IP : 45.40.142.9  /  Your IP : 216.73.216.250
Web Server : Apache
System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : bayspec ( 506)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/mysql-test/extra/rpl_tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/mysql-test/extra/rpl_tests/rpl_row_sp007.test
#############################################################################
# TEST: SP that creates table, starts tranaction inserts. Save point, insert#
#       rollback to save point and then commits.                            #
#############################################################################
# Includes
-- source include/have_binlog_format_row.inc
-- source include/master-slave.inc

# Begin test section 1
delimiter |;
eval CREATE PROCEDURE test.p1(IN i INT)
BEGIN
  DECLARE CONTINUE HANDLER FOR sqlexception BEGIN END;
  DROP TABLE IF EXISTS test.t1;
  CREATE TABLE test.t1 (num INT,PRIMARY KEY(num))ENGINE=$engine_type;
  START TRANSACTION;
    INSERT INTO test.t1 VALUES(i);
    savepoint t1_save;
    INSERT INTO test.t1 VALUES (14);
    ROLLBACK to savepoint t1_save;
    COMMIT;
END|
delimiter ;|

let $message=< ---- Master selects-- >;
--source include/show_msg.inc
CALL test.p1(12);
SELECT * FROM test.t1;


let $message=< ---- Slave selects-- >;
--source include/show_msg.inc
--source include/sync_slave_sql_with_master.inc
SELECT * FROM test.t1;

let $message=< ---- Master selects-- >;
--source include/show_msg.inc
connection master;
CALL test.p1(13);
SELECT * FROM test.t1;

let $message=< ---- Slave selects-- >;
--source include/show_msg.inc
--source include/sync_slave_sql_with_master.inc
SELECT * FROM test.t1;

connection master;
#show binlog events;


DROP PROCEDURE test.p1;
DROP TABLE test.t1;

# End of 5.0 test case
--source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit