• Gleb Shchepa's avatar
    Fixed bug #37076: TIMESTAMP/DATETIME/DATE values are not · c8bc6a5d
    Gleb Shchepa authored
                      replicated correctly between machines with
                      mixed endiannes
    
    
    mysql-test/extra/rpl_tests/rpl_row_basic.test:
      Added regression test for bug#37076.
    mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result:
      Added regression test for bug#37076.
    mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result:
      Added regression test for bug#37076.
    mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result:
      Added regression test for bug#37076.
    sql/field.h:
      Fixed bug #37076: TIMESTAMP/DATETIME/DATE values are not
                        replicated correctly between machines with
                        mixed endiannes
      
      pack and unpack virtual methods have been overloaded for
      Field_timestamp (TIMESTAMP domain), Field_datetime (DATETIME
      domain) and Field_date (DATE domain) classes to replicate data
      between platforms with different endiannes in a correct way
      like in Field_long and Field_longlong classes.
      
      Common code have been moved to private handle_int32 and 
      handle_int64 private methods.
    c8bc6a5d
rpl_row_basic.test 8.47 KB