1. 20 Aug, 2007 2 commits
  2. 17 Aug, 2007 2 commits
    • unknown's avatar
      Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.1/mysql-5.1-new-ndb-bj · ccfc9de4
      unknown authored
      into  dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.1/mysql-5.1-bug22240
      
      
      ccfc9de4
    • unknown's avatar
      BUG#22240 Add a test case into ndb_restore_compat · 97a4378c
      unknown authored
      
      mysql-test/r/ndb_restore_compat.result:
        add "order by" to select clause
      mysql-test/std_data/ndb_backup50/BACKUP-2-0.1.Data:
        new data file
      mysql-test/std_data/ndb_backup50/BACKUP-2-0.2.Data:
        new data file
      mysql-test/std_data/ndb_backup50/BACKUP-2.1.ctl:
        new ctl file
      mysql-test/std_data/ndb_backup50/BACKUP-2.1.log:
        new log file
      mysql-test/std_data/ndb_backup50/BACKUP-2.2.ctl:
        new ctl file
      mysql-test/std_data/ndb_backup50/BACKUP-2.2.log:
        new log file
      mysql-test/t/ndb_restore_compat.test:
        add "order by" to select clause
      97a4378c
  3. 16 Aug, 2007 1 commit
    • unknown's avatar
      Merge dev3-240.dev.cn.tlan:/home/justin.he/mysql/mysql-5.1/mysql-5.1-new-ndb · 9e46c67b
      unknown authored
      into  dev3-240.dev.cn.tlan:/home/justin.he/mysql/mysql-5.1/mysql-5.1-new-ndb-bj.merge
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Auto merged
      storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        Auto merged
      storage/ndb/tools/restore/restore_main.cpp:
        Auto merged
      9e46c67b
  4. 15 Aug, 2007 7 commits
    • unknown's avatar
      Merge lzhou@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb-bj · 9e8327a6
      unknown authored
      into  dev3-63.(none):/home/zhl/mysql/mysql-5.1/bug30134
      
      
      storage/ndb/tools/restore/Restore.cpp:
        Auto merged
      9e8327a6
    • unknown's avatar
      Remove the extra files for the bug29674 exist only in 5.0 · e7851aad
      unknown authored
      
      BitKeeper/deleted/.del-ndb_restore_different_endian_data.result:
        Delete: mysql-test/r/ndb_restore_different_endian_data.result
      BitKeeper/deleted/.del-BACKUP-1-0.1.Data:
        Delete: mysql-test/std_data/ndb_backup50_data_be/BACKUP-1-0.1.Data
      BitKeeper/deleted/.del-BACKUP-1-0.2.Data:
        Delete: mysql-test/std_data/ndb_backup50_data_be/BACKUP-1-0.2.Data
      BitKeeper/deleted/.del-BACKUP-1.1.ctl:
        Delete: mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.1.ctl
      BitKeeper/deleted/.del-BACKUP-1.1.log:
        Delete: mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.1.log
      BitKeeper/deleted/.del-BACKUP-1.2.ctl:
        Delete: mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.2.ctl
      BitKeeper/deleted/.del-BACKUP-1.2.log:
        Delete: mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.2.log
      BitKeeper/deleted/.del-BACKUP-1-0.1.Data~a57077b1652462e:
        Delete: mysql-test/std_data/ndb_backup50_data_le/BACKUP-1-0.1.Data
      BitKeeper/deleted/.del-BACKUP-1-0.2.Data~7ded385bca6b1f64:
        Delete: mysql-test/std_data/ndb_backup50_data_le/BACKUP-1-0.2.Data
      BitKeeper/deleted/.del-BACKUP-1.1.ctl~f95f9b1922013c1f:
        Delete: mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.1.ctl
      BitKeeper/deleted/.del-BACKUP-1.1.log~a9759ef97cd15f92:
        Delete: mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.1.log
      BitKeeper/deleted/.del-BACKUP-1.2.ctl~3ebf846a47d4cc6c:
        Delete: mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.2.ctl
      BitKeeper/deleted/.del-BACKUP-1.2.log~6c37168b3738d195:
        Delete: mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.2.log
      BitKeeper/deleted/.del-ndb_restore_different_endian_data.test:
        Delete: mysql-test/t/ndb_restore_different_endian_data.test
      e7851aad
    • unknown's avatar
      Merge dev3-63.(none):/home/zhl/mysql/mysql-5.0/bug29674 · 8492ad68
      unknown authored
      into  dev3-63.(none):/home/zhl/mysql/mysql-5.1/bug29674
      
      
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Revert the change in parseTableInfo for modified only in 5.0
      storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        Revert declare of pareTableInfo for 5.1
      storage/ndb/tools/restore/Restore.cpp:
        Revert change in 5.1
      8492ad68
    • unknown's avatar
      [PATCH] BUG#28253 ndb_size.pl: cannot set socket · b0ac87dc
      unknown authored
      Index: ndb-work/storage/ndb/tools/ndb_size.pl
      ===================================================================
      
      
      storage/ndb/tools/ndb_size.pl:
        BUG#28253 ndb_size.pl: cannot set socket
      b0ac87dc
    • unknown's avatar
      [PATCH] Bug#29228 ndb_size.pl borks on float columns with comma in () · 71a1f160
      unknown authored
      Index: ndb-work/storage/ndb/tools/ndb_size.pl
      ===================================================================
      
      
      storage/ndb/tools/ndb_size.pl:
        Bug#29228 ndb_size.pl borks on float columns with comma in ()
      71a1f160
    • unknown's avatar
      [PATCH] BUG#28683 - ndb_size.pl should support more than one database · 57c6daa9
      unknown authored
      Patch by: Monty Taylor <mtaylor@mysql.com>
      Fixes by: Stewart Smith
      
        Added the ability to run ndb_size.pl on mulitple databases and also to exclude lists of databases and tables from analysis.
        ---
        Added schema name information to index table calculations as well.
        ---
        Made database an optional parameter, the exclusion of which causes all databases to be examined.
        If selecting from information_schema fails, attempt to fall back to show tables from
        ---
        Added support for setting an optional "real_table_name" for a table to deal with unique indexe size calcs.
        ---
        Fixed report title for the case where we are using operating on more than one database.
        ---
        Fixed some perl style concerns timothy had.
        Cull the list of databases in perl rather than passing both an in and a not in list to MySQL
        Get this full list of databases from show databases if needed.
      
        storage/ndb/tools/ndb_size.pl@stripped, 2007-05-25 13:45:44-07:00, mtaylor@qualinost.(none) +102 -28
          Added the ability to run ndb_size.pl on mulitple databases and also to exclude lists of databases and tables from analysis.
          ---
          Added schema name information to index table calculations as well.
          ---
          Made database an optional parameter, the exclusion of which causes all databases to be examined.
          If selecting from information_schema fails, attempt to fall back to show tables from
          ---
          Added support for setting an optional "real_table_name" for a table to deal with unique indexe size calcs.
          ---
          Fixed report title for the case where we are using operating on more than one database.
          ---
          Fixed some perl style concerns timothy had. 
          Cull the list of databases in perl rather than passing both an in and a not in list to MySQL
          Get this full list of databases from show databases if needed.
      
      Index: ndb-work/storage/ndb/tools/ndb_size.pl
      ===================================================================
      
      
      storage/ndb/tools/ndb_size.pl:
        BUG#28683 - ndb_size.pl should support more than one database
      57c6daa9
    • unknown's avatar
      Merge ssmith@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb · 5ab56cdd
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.1/ndb
      
      
      5ab56cdd
  5. 14 Aug, 2007 3 commits
    • unknown's avatar
      bug#30337 DELETE ... WHERE PK IN (..) and AFTER DELETE trigger crashes API... · 1b14d027
      unknown authored
      bug#30337  DELETE ... WHERE PK IN (..) and AFTER DELETE trigger crashes API node: Regenerated result
      
      
      
      1b14d027
    • unknown's avatar
      Merge willster.(none):/home/stewart/Documents/MySQL/5.0/ndb · 98a7590f
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.1/ndb
      
      
      mysql-test/r/ndb_bug26793.result:
        Auto merged
      mysql-test/t/ndb_bug26793.test:
        Auto merged
      98a7590f
    • unknown's avatar
      Backport Magnus' fix from 5.1 · 6656d39c
      unknown authored
      ChangeSet@1.2575, 2007-08-07 19:16:06+02:00, msvensson@pilot.(none) +2 -0
        Bug#26793 mysqld crashes when doing specific query on information_schema
         - Drop the newly created user user1@localhost
         - Cleanup testcase
      
      
      mysql-test/r/ndb_bug26793.result:
          mysql-test/r/ndb_bug26793.result@1.3, 2007-08-07 19:16:04+02:00, msvensson@pilot.(none)
        +1 -6
            Update test result
      mysql-test/t/ndb_bug26793.test:
          mysql-test/t/ndb_bug26793.test@1.3, 2007-08-07 19:16:04+02:00, msvensson@pilot.(none) +8
        -11
            - Remove the drop/restore of anonymous users - there are no such users
            by default anymore(if there were, they would probably be in mysql.user)
            - Switch back to default connection before cleanup 
            - Drop user1@localhost as part of cleanup
      6656d39c
  6. 13 Aug, 2007 3 commits
  7. 08 Aug, 2007 5 commits
  8. 07 Aug, 2007 2 commits
    • unknown's avatar
      BUG#29674 Restore/backup are endian compatible in 5.0 · 4c23e5f3
      unknown authored
      
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Twiddle the "replicaCount" and "fragCount" variable when restore data from different endian.
      ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        Add byte order variable
      ndb/tools/restore/Restore.cpp:
        Twiddle blob, datatime,timestamp when do restore in different endian.
      mysql-test/r/ndb_restore_different_endian_data.result:
        Test case result for restore data from different endian
      mysql-test/std_data/ndb_backup50_data_be/BACKUP-1-0.1.Data:
        Test case data
      mysql-test/std_data/ndb_backup50_data_be/BACKUP-1-0.2.Data:
        Test case data
      mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.1.ctl:
        Test case data
      mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.1.log:
        Test case data
      mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.2.ctl:
        Test case data
      mysql-test/std_data/ndb_backup50_data_be/BACKUP-1.2.log:
        Test case data
      mysql-test/std_data/ndb_backup50_data_le/BACKUP-1-0.1.Data:
        Test case data
      mysql-test/std_data/ndb_backup50_data_le/BACKUP-1-0.2.Data:
        Test case data
      mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.1.ctl:
        Test case data
      mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.1.log:
        Test case data
      mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.2.ctl:
        Test case data
      mysql-test/std_data/ndb_backup50_data_le/BACKUP-1.2.log:
        Test case data
      mysql-test/t/ndb_restore_different_endian_data.test:
        Test case for restore data from different endian
      4c23e5f3
    • unknown's avatar
      Bug#26793 mysqld crashes when doing specific query on information_schema · 7c915116
      unknown authored
       - Drop the newly created user user1@localhost
       - Cleanup testcase
      
      
      mysql-test/r/ndb_bug26793.result:
        Update test result
      mysql-test/t/ndb_bug26793.test:
        - Remove the drop/restore of anonymous users - there are no such users
        by default anymore(if there were, they would probably be in mysql.user)
        - Switch back to default connection before cleanup 
        - Drop user1@localhost as part of cleanup
      7c915116
  9. 31 Jul, 2007 1 commit
  10. 30 Jul, 2007 1 commit
  11. 29 Jul, 2007 1 commit
    • unknown's avatar
      WL#3228 (NDB) : RBR using different table defs on slave/master · 6b001563
      unknown authored
      This patch corrects a incorrect type conversion during encoding and
      decoding the length for VARCHAR fields.
      
      
      sql/log_event.cc:
        WL#3228 (NDB) : RBR using different table defs on slave/master
        
        This patch changes the encoding of the 16-bit length value for
        VARCHAR field correcting an undetected type conflict.
      sql/rpl_utility.h:
        WL#3228 (NDB) : RBR using different table defs on slave/master
        
        This patch changes the decoding of the 16-bit length value for
        VARCHAR field correcting an undetected type conflict.
      6b001563
  12. 28 Jul, 2007 3 commits
    • unknown's avatar
      WL#3228 (NDB) : RBR using different table defs on slave/master · 3c631d7b
      unknown authored
        
      This patch changes the code to comply with different word order on Solaris
      
      
      3c631d7b
    • unknown's avatar
      WL#3228 (NDB) : RBR using different table defs on slave/master · 259fd485
      unknown authored
      Patch for PB testing errors.
      
      
      sql/rpl_utility.h:
        WL#3228 (NDB) : RBR using different table defs on slave/master
        
        This patch corrects a problem detected on 64-bit platforms with BIT and
        VARCHAR fields.
      259fd485
    • unknown's avatar
      WL#3915 : (NDB) master's cols > slave · 372c9a77
      unknown authored
      Patch corrects minor test anomolies and build warnings.
      
      
      mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test:
        WL#3915 : (NDB) master's cols > slave
        
        Patch masks out the port number in the show slave status results.
      mysql-test/r/rpl_extraColmaster_innodb.result:
        WL#3915 : (NDB) master's cols > slave
        
        New result file from changed test.
      mysql-test/r/rpl_extraColmaster_myisam.result:
        WL#3915 : (NDB) master's cols > slave
        
        New result file from changed test.
      mysql-test/r/rpl_row_extraColmaster_ndb.result:
        WL#3915 : (NDB) master's cols > slave
        
        New result file from changed test.
      sql/field.cc:
        WL#3915 : (NDB) master's cols > slave
        
        Removed warning for unused parameter. Parameter was include for assertion
        and future changes to string class.
      372c9a77
  13. 27 Jul, 2007 9 commits
    • unknown's avatar
      WL#3915 : (NDB) master's cols > slave · 4352ec45
      unknown authored
      Minor change to fix compile problems on 64-bit.
      
      
      4352ec45
    • unknown's avatar
      Merge mysql_cab_desk.:C:/source/c++/mysql-5.1_WL_3228_ndb · dcdc40b6
      unknown authored
      into  mysql_cab_desk.:C:/source/c++/mysql-5.1-new-ndb-push
      
      
      mysql-test/t/disabled.def:
        SCCS merged
      dcdc40b6
    • unknown's avatar
      Merge mysql_cab_desk.:C:/source/c++/mysql-5.1_WL_3228_ndb · e1c7a80e
      unknown authored
      into  mysql_cab_desk.:C:/source/c++/mysql-5.1_WL_3915_ndb
      
      
      mysql-test/extra/rpl_tests/rpl_log.test:
        Auto merged
      mysql-test/r/rpl_rbr_to_sbr.result:
        Auto merged
      mysql-test/r/rpl_row_basic_11bugs.result:
        Auto merged
      mysql-test/r/rpl_row_create_table.result:
        Auto merged
      mysql-test/r/rpl_row_flsh_tbls.result:
        Auto merged
      mysql-test/r/rpl_row_inexist_tbl.result:
        Auto merged
      mysql-test/r/rpl_row_log.result:
        Auto merged
      mysql-test/r/rpl_row_log_innodb.result:
        Auto merged
      mysql-test/r/rpl_row_max_relay_size.result:
        Auto merged
      mysql-test/r/rpl_row_until.result:
        Auto merged
      mysql-test/r/rpl_stm_log.result:
        Auto merged
      mysql-test/r/rpl_truncate_7ndb.result:
        Auto merged
      mysql-test/t/binlog_row_mix_innodb_myisam.test:
        Auto merged
      mysql-test/t/rpl_row_create_table.test:
        Auto merged
      mysql-test/t/rpl_row_flsh_tbls.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/field.h:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/log_event.h:
        Auto merged
      sql/rpl_record.cc:
        Auto merged
      sql/rpl_rli.h:
        Auto merged
      sql/rpl_utility.h:
        Auto merged
      BitKeeper/deleted/.del-rpl_colSize.result:
        Delete: mysql-test/r/rpl_colSize.result
      BitKeeper/deleted/.del-rpl_colSize.test:
        Delete: mysql-test/t/rpl_colSize.test
      mysql-test/r/rpl_ndb_log.result:
        pull merge
        ,
      sql/rpl_utility.cc:
         pull merge
      e1c7a80e
    • unknown's avatar
      WL#3915 : (NDB) master's cols > slave · 4375508a
      unknown authored
      Slave starts accepting and handling rows of master's tables which have more columns.
      The most important part of implementation is how to caclulate the amount of bytes to
      skip for unknown by slave column.
      
      To solve that issue this WL adopts results of WL#3228 which introduces an addon to
      table_map event that carries the necessary part of information about sizes of data of columns.
      
      mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test@stripped, 2007-07-26 21:31:54-04:00, cbell@mysql_cab_desk. +393 -0
      WL#3915  master's cols > slave
      
      basic tests checking altering and skipping extra fields by slave.
      The fields can be of any possible types.
      
      
      mysql-test/extra/rpl_tests/rpl_row_tabledefs.test:
        WL#3915  master's cols > slave
        
        Changed test to remove checks for error#1523 (more master cols than
        slave). This portion of the test is no longer needed.
      mysql-test/r/rpl_row_tabledefs_2myisam.result:
        WL#3915  master's cols > slave
        
        Corrected results from removal of checks for error#1523 (more master 
        cols than slave). This portion of the test is no longer needed.
      mysql-test/r/rpl_row_tabledefs_3innodb.result:
        WL#3915  master's cols > slave
        
        Corrected results from removal of checks for error#1523 (more master 
        cols than slave). This portion of the test is no longer needed.
      mysql-test/t/disabled.def:
        WL#3915  master's cols > slave
        
        Disabled the rpl_stm_extraColmaster_ndb test because statement-based
        replication is not supported in NDB at this time. It can be enabled
        when statement-based replication for NDB is released.
      sql/log_event.cc:
        WL#3915  master's cols > slave
        
        copying extra (slave's) fields returns early if master's table version is wider;
        removing assert in the way of master > slave cols.
      sql/rpl_record.cc:
        WL#3915  master's cols > slave
        
        adding a snippet that shift exectution curson donw the row skipping unknown by slave
        fields' data.
      sql/rpl_utility.cc:
        WL#3915  master's cols > slave
        
        Remove warning message for master's cols > slave.
      mysql-test/t/rpl_extraColmaster_innodb-master.opt:
        WL#3915  master's cols > slave
        
        option for innodb
      mysql-test/t/rpl_extraColmaster_innodb-slave.opt:
        WL#3915  master's cols > slave
        
        option for innodb
      mysql-test/t/rpl_extraColmaster_innodb.test:
        WL#3915  master's cols > slave
        
        Test of innodb. Test runs in both statement- and row-based replication.
      mysql-test/t/rpl_extraColmaster_myisam.test:
        WL#3915  master's cols > slave
        
        Test of myisam. Test runs in both statement- and row-based replication.
      mysql-test/t/rpl_row_extraColmaster_ndb.test:
        WL#3915  master's cols > slave
        
        Test of ndb. Test runs in row-based replication.
      mysql-test/r/rpl_extraColmaster_innodb.result:
        WL#3915  master's cols > slave
        
        new results
      mysql-test/t/rpl_stm_extraColmaster_ndb.test:
        WL#3915  master's cols > slave
        
        Test of ndb. Test runs in statement-based replication.
      mysql-test/r/rpl_extraColmaster_myisam.result:
        WL#3915  master's cols > slave
        
        new results
      mysql-test/r/rpl_row_extraColmaster_ndb.result:
        WL#3915  master's cols > slave
        
        new results
      mysql-test/r/rpl_stm_extraColmaster_ndb.result:
        WL#3915  master's cols > slave
        
        new results
      mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test:
        WL#3915  master's cols > slave
        
        basic tests checking altering and skipping extra fields by slave.
        The fields can be of any possible types.
      4375508a
    • unknown's avatar
      WL#3228 (NDB) : RBR using different table defs on slave/master · ef79d224
      unknown authored
      This patch adds the ability to store extra field metadata in the table
      map event. This data can include pack_length() or field_lenght() for
      fields such as CHAR or VARCHAR enabling developers to add code that
      can check for compatibilty between master and slave columns. More 
      importantly, the extra field metadata can be used to store data from the
      master correctly should a VARCHAR field on the master be <= 255 bytes 
      while the same field on the slave is > 255 bytes. '
      
      The patch also includes the needed changes to unpack to ensure that data
      which is smaller on the master can be unpacked correctly on the slave.
      
      
      mysql-test/extra/rpl_tests/rpl_log.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to display slave status vertically.
      mysql-test/r/rpl_ndb_log.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_rbr_to_sbr.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_basic_11bugs.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_create_table.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_flsh_tbls.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_inexist_tbl.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_log.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_log_innodb.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_max_relay_size.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_until.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_stm_log.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the rpl_log.test modifications.
      mysql-test/r/rpl_truncate_7ndb.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/t/binlog_row_mix_innodb_myisam.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to coincide with changes to binlog
        size of table map event.
      mysql-test/t/rpl_row_create_table.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to coincide with changes to binlog
        size of table map event.
      mysql-test/t/rpl_row_flsh_tbls.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to coincide with changes to binlog
        size of table map event.
      sql/field.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch includes updates to the unpack() methods for the variable
        length fields. A new parameter was added (from_length) that is the
        value stored in the field_metadata of the table map from the table_def
        class. If the value is non-zero and less than what the field on the 
        slave is then use the from_length else use the original value from the
        field on the slave.
      sql/field.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch includes updates to the unpack() methods for the variable
        length fields. A new parameter was added (from_length) that is the
        value stored in the field_metadata of the table map from the table_def
        class.
      sql/log_event.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds methods to calculate the field metadata size, prepare
        the field metadata for writing to the binlog, and additions to the
        Table_map_log_event::write_body method to include the field metadata 
        in the table map that is written to the binlog.
      sql/log_event.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds method declarations and variables needed to support
        storing field metadata in the table map that is written to the binlog.
      sql/rpl_record.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch modifies the unpack_row() method to unpack fields passing in
        the value from the table_def class. This value is the extra field
        metadata stored there from the master.
      sql/rpl_rli.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds a helper function to retrieve the table_def for a given
        table in the RPL_TABLE_LIST structure.
      sql/rpl_utility.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds a helper method that retrieves the correct size 
        parameter for the field. This method is used to compare the size as
        sent by the master with that on the slave for all types of fields that
        can vary in size and storage requirements.
      sql/rpl_utility.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the table_def class constructor to pass in the raw
        data read from the table map and extract it into an array of dimension
        size (number of fields). It also adds a method to return the field 
        metadata for any field. The method returns the data stored in the table
        map or 0 if no data was stored for that field. Lastly, a method to return
        the results of field->maybe_null() is included so that the slave can
        determine if a field that is not on the slave is null.
      mysql-test/t/rpl_colSize.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a new test designed to test the feature of having
        columns on the master that are smaller than what is on the slave.
      mysql-test/r/rpl_colSize.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      ef79d224
    • unknown's avatar
      WL#3228 (NDB) : RBR using different table defs on slave/master · 0e0b05ec
      unknown authored
      This patch adds the ability to store extra field metadata in the table
      map event. This data can include pack_length() or field_lenght() for
      fields such as CHAR or VARCHAR enabling developers to add code that
      can check for compatibilty between master and slave columns. More 
      importantly, the extra field metadata can be used to store data from the
      master correctly should a VARCHAR field on the master be <= 255 bytes 
      while the same field on the slave is > 255 bytes. '
      
      The patch also includes the needed changes to unpack to ensure that data
      which is smaller on the master can be unpacked correctly on the slave.
      
      
      mysql-test/extra/rpl_tests/rpl_log.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to display slave status vertically.
      mysql-test/r/rpl_ndb_log.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_rbr_to_sbr.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_basic_11bugs.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_create_table.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_flsh_tbls.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_inexist_tbl.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_log.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_log_innodb.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_max_relay_size.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_row_until.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/r/rpl_stm_log.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the rpl_log.test modifications.
      mysql-test/r/rpl_truncate_7ndb.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/t/binlog_row_mix_innodb_myisam.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to coincide with changes to binlog
        size of table map event.
      mysql-test/t/rpl_row_create_table.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to coincide with changes to binlog
        size of table map event.
      mysql-test/t/rpl_row_flsh_tbls.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the test to coincide with changes to binlog
        size of table map event.
      sql/field.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch includes updates to the unpack() methods for the variable
        length fields. A new parameter was added (from_length) that is the
        value stored in the field_metadata of the table map from the table_def
        class. If the value is non-zero and less than what the field on the 
        slave is then use the from_length else use the original value from the
        field on the slave.
      sql/field.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch includes updates to the unpack() methods for the variable
        length fields. A new parameter was added (from_length) that is the
        value stored in the field_metadata of the table map from the table_def
        class.
      sql/log_event.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds methods to calculate the field metadata size, prepare
        the field metadata for writing to the binlog, and additions to the
        Table_map_log_event::write_body method to include the field metadata 
        in the table map that is written to the binlog.
      sql/log_event.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds method declarations and variables needed to support
        storing field metadata in the table map that is written to the binlog.
      sql/rpl_record.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch modifies the unpack_row() method to unpack fields passing in
        the value from the table_def class. This value is the extra field
        metadata stored there from the master.
      sql/rpl_rli.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds a helper function to retrieve the table_def for a given
        table in the RPL_TABLE_LIST structure.
      sql/rpl_utility.cc:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch adds a helper method that retrieves the correct size 
        parameter for the field. This method is used to compare the size as
        sent by the master with that on the slave for all types of fields that
        can vary in size and storage requirements.
      sql/rpl_utility.h:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch changes the table_def class constructor to pass in the raw
        data read from the table map and extract it into an array of dimension
        size (number of fields). It also adds a method to return the field 
        metadata for any field. The method returns the data stored in the table
        map or 0 if no data was stored for that field. Lastly, a method to return
        the results of field->maybe_null() is included so that the slave can
        determine if a field that is not on the slave is null.
      mysql-test/r/rpl_colSize.result:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a result file for the new test designed to test the 
        feature of having columns on the master that are smaller than what is 
        on the slave.
      mysql-test/t/rpl_colSize.test:
        WL#3228 : RBR using different table defs on slave/master
        
        This patch contains a new test designed to test the feature of having
        columns on the master that are smaller than what is on the slave.
      0e0b05ec
    • unknown's avatar
      Merge willster.(none):/home/stewart/Documents/MySQL/5.0/ndb-work · 1004dc60
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.1/ndb-merge
      
      
      1004dc60
    • unknown's avatar
    • unknown's avatar