mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
eb75edfb2b
This makes it clear that the error code has nothing to do with errno. mysql-test/include/mtr_warnings.sql: Fixed suppression for new slave error messages mysql-test/lib/My/Test.pm: Use 'send' instead of 'print' to avoid errors about "wrong class ... back attempt" mysql-test/lib/v1/mtr_report.pl: Fixed suppression for new slave error messages mysql-test/mysql-test-run.pl: Fixed suppression for new slave error messages Removed warning from perl 5.16.2 about arrays mysql-test/r/flush_read_lock.result: Fixed suppression for new slave error messages sql/rpl_reporting.cc: Instead of writing "Errcode" to the log for Slave errors, use "Internal MariaDB error code"
17 lines
867 B
Text
17 lines
867 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
create table t1 (a int, unique(a)) engine=myisam;
|
|
set sql_log_bin=0;
|
|
insert into t1 values(2);
|
|
set sql_log_bin=1;
|
|
insert into t1 values(1),(2);
|
|
ERROR 23000: Duplicate entry '2' for key 'a'
|
|
drop table t1;
|
|
include/wait_for_slave_sql_to_stop.inc
|
|
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.* error code=1062.*Error on slave:.* error.* 0");
|
|
Error: "Query caused different errors on master and slave. Error on master: message (format)='Duplicate entry '%-.192s' for key %d' error code=1062 ; Error on slave: actual message='no error', error code=0. Default database: 'test'. Query: 'insert into t1 values(1),(2)'" (expected different error codes on master and slave)
|
|
Errno: "0" (expected 0)
|
|
drop table t1;
|
|
include/stop_slave.inc
|
|
RESET SLAVE;
|
|
include/rpl_end.inc
|