mariadb/mysql-test/suite/rpl_ndb/r
Luis Soares 73f10f0662 BUG#49481: RBR: MyISAM and bit fields may cause slave to stop on delete:
cant find record

Some engines return data for the record. Despite the fact that
the null bit is set for some fields, their old value may still in
the row. This can happen when unpacking an AI from the binlog on
top of a previous record in which a field is set to NULL, which
previously contained a value. Ultimately, this may cause the
comparison of records to fail when the slave is doing an index or
range scan.

We fix this by deploying a call to reset() for each field that is
set to null while unpacking a row from the binary log.
Furthermore, we also add mixed mode test case to cover the
scenario where updating and setting a field to null through a
Query event and later searching it through a rows event will
succeed.

Finally, we also change the reset() method, from Field_bit class,
so that it takes into account bits stored among the null bits and
not only the ones stored in the record.

mysql-test/suite/rpl/t/rpl_set_null_innodb.test:
  InnoDB test.
mysql-test/suite/rpl/t/rpl_set_null_myisam.test:
  MyISAM test.
mysql-test/suite/rpl_ndb/t/rpl_ndb_set_null.test:
  NDB test.
sql/field.h:
  Changed reset so that it also clears the bits
  among the null_bits for the Field_bit class.
sql/rpl_record.cc:
  Resetting field after setting it to null when unpacking
  row.
2010-01-21 17:20:24 +00:00
..
rpl_ndb_2innodb.result Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output 2008-11-04 08:43:21 +01:00
rpl_ndb_2myisam.result Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output 2008-11-04 08:43:21 +01:00
rpl_ndb_2ndb.result correcting wrong test case 2008-02-11 15:06:07 +01:00
rpl_ndb_2other.result BUG#38350: Many tests don't clean up after themselves on exit. 2008-11-13 20:19:00 +01:00
rpl_ndb_apply_status.result Bug#28170 replicate-ignore-db=mysql should not ignore mysql.ndb_apply_status 2007-11-02 13:07:14 +01:00
rpl_ndb_auto_inc.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_bank.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_basic.result BUG#37975: wait_for_slave_* should increase the timeout 2008-07-10 18:09:39 +02:00
rpl_ndb_blob.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_blob2.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_circular.result Mask columns 35 and 36 since Last_IO_errno is not reset du to 2008-03-14 15:42:27 +01:00
rpl_ndb_circular_2ch.result Bug #41732 rpl_ndb_circular_2ch needs an updated configuration file 2009-02-02 22:31:01 +02:00
rpl_ndb_circular_simplex.result BUG#44661: rpl_ndb.rpl_ndb_circular_simplex fails because of 2009-09-27 23:03:05 +01:00
rpl_ndb_commit_afterflush.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_ctype_ucs2_def.result BUG#38350: Many tests don't clean up after themselves on exit. 2008-11-13 20:19:00 +01:00
rpl_ndb_dd_basic.result Merge pilot.(none):/data/msvensson/mysql/wl3933/my51-wl3933-new2 2007-06-27 14:29:10 +02:00
rpl_ndb_dd_partitions.result Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output 2008-11-04 08:43:21 +01:00
rpl_ndb_ddl.result Enabled test rpl_ndb_ddl 2007-12-11 11:51:14 +01:00
rpl_ndb_delete_nowhere.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_do_db.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_do_table.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_extraCol.result BUG#48091 valgrind errors when slave has double not null and master has double null 2009-10-22 01:21:50 +01:00
rpl_ndb_func003.result BUG#49222: Mark RAND() as unsafe 2010-01-13 10:00:03 +01:00
rpl_ndb_idempotent.result Merge pilot.(none):/data/msvensson/mysql/wl3933/my51-wl3933-new2 2007-06-27 14:29:10 +02:00
rpl_ndb_innodb2ndb.result Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output 2008-11-04 08:43:21 +01:00
rpl_ndb_innodb_trans.result WL#4189 2007-12-12 18:19:24 +01:00
rpl_ndb_insert_ignore.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_load.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_log.result Merge BUG#43263 from 5.0-bugteam to 5.1-bugteam 2009-05-31 13:44:41 +08:00
rpl_ndb_mixed_engines_transactions.result BUG#37373: rpl_ndb_transaction fails sporadically in pb on sol10-amd64-a and sol10-sparc-a 2008-07-06 12:53:25 +02:00
rpl_ndb_multi.result BUG#38350: Many tests don't clean up after themselves on exit. 2008-11-13 20:19:00 +01:00
rpl_ndb_multi_update2.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_multi_update3.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_myisam2ndb.result Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output 2008-11-04 08:43:21 +01:00
rpl_ndb_relayrotate.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_rep_ignore.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_row_001.result Use absolute path to allow tets to be run also when datadir differs 2007-12-19 09:42:31 +01:00
rpl_ndb_set_null.result BUG#49481: RBR: MyISAM and bit fields may cause slave to stop on delete: 2010-01-21 17:20:24 +00:00
rpl_ndb_sp003.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_sp006.result Bug#45581 Test rpl_row_sp006_InnoDB fails randomly: Unknown database 'mysqltest1' 2009-09-07 13:01:03 +08:00
rpl_ndb_stm_innodb.result Merge BUG#43263 from 5.0-bugteam to 5.1-bugteam 2009-05-31 13:44:41 +08:00
rpl_ndb_sync.result Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
rpl_ndb_trig004.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_ndb_UUID.result Merge maint1.mysql.com:/data/localhome/tsmith/bk/51 2007-07-04 22:38:53 +02:00
rpl_ndbapi_multi.result WL#3933 Split main test suite to rpl, rpl_ndb and ndb 2007-06-27 14:28:02 +02:00
rpl_row_basic_7ndb.result merging 5.1 -> 5.1 rpl. 3 of 4 conflicts are resolved similarly to 6.0->6.0-rpl merging. 2008-11-12 19:51:47 +02:00
rpl_truncate_7ndb.result WL#3228 (NDB) : RBR using different table defs on slave/master 2007-07-29 18:10:42 -04:00
rpl_truncate_7ndb_2.result Bug#39803 Test rpl.rpl_truncate_7ndb_2 failing 2008-09-15 15:13:43 -04:00