403Webshell
Server IP : 172.67.216.182  /  Your IP : 108.162.226.26
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 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 : ON
Directory :  /www/server/mysql/src/mysql-test/suite/ndb_rpl/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb_rpl/t/ndb_rpl_bug22045.test
# The include statement below is a temp one for tests that are yet to
#be ported to run with InnoDB,
#but needs to be kept for tests that would need MyISAM in future.
--source include/force_myisam_default.inc

--source include/have_ndb.inc
# Test case currently fails for statement-based replication, as BUG#22045 is
# not fixed in the replication slave thread.
--source include/have_binlog_format_mixed_or_row.inc
--source suite/ndb_rpl/ndb_master-slave.inc

# BUG#22045: Got error 839 'Illegal null attribute' from NDBCLUSTER when 'Replace Into'.
# Check that REPLACE INTO replicates correctly with partial value list and with/without blobs.
connection master;
create table t1 (a int primary key,
                 b varchar(100) default 'b',
                 c varchar(100)) engine=ndbcluster;
insert into t1 values (1, 'b1', 'c1');
insert into t1 (a) values (2);
insert into t1 (a, b) values (3, 'b3');
replace into t1 values (5, 'b5', 'c5');
replace into t1 (a) values (6);
replace into t1 (a, c) values (7, 'c7');
select * from t1 order by a;

--sync_slave_with_master
select * from t1 order by a;

connection master;
replace into t1 (a) values (1);
replace into t1 (a, b) values (2, 'b2x');
replace into t1 (a, c) values (3, 'c3x');
replace into t1 (a, b, c) values (5, 'b5x', 'c5x');
replace into t1 (a) values (6);
replace into t1 (a) values (7);
select * from t1 order by a;

--sync_slave_with_master
select * from t1 order by a;

--connection master
drop table t1;
create table t1 (a int primary key,
                 b varchar(100) default 'b',
                 c varchar(100),
                 d text,
                 e text) engine=ndbcluster;
insert into t1 values (1, 'b1', 'c1', 'd1', 'e1');
insert into t1 (a) values (2);
insert into t1 (a, b, d) values (3, 'b3', 'd3');
replace into t1 values (5, 'b5', 'c5', 'd5', 'e5');
replace into t1 (a) values (6);
replace into t1 (a, c, e) values (7, 'c7', 'e7');
select * from t1 order by a;

--sync_slave_with_master
select * from t1 order by a;

connection master;
replace into t1 (a) values (1);
replace into t1 (a, b, d) values (2, 'b2x', 'd2x');
replace into t1 (a, c, e) values (3, 'c3x', 'e3x');
replace into t1 (a, b, c, d, e) values (5, 'b5x', 'c5x', 'd5x', 'e5x');
replace into t1 (a) values (6);
replace into t1 (a, e) values (7, 'e7x');
select * from t1 order by a;

--sync_slave_with_master
select * from t1 order by a;

--connection master
drop table t1;

-- source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit