• Satya B's avatar
    Bug#35111 - Truncate a MyISAM partitioned table does not reset · 02e70f16
    Satya B authored
    the auto_increment value
          
    This is an alternative patch that instead of allowing RECREATE TABLE
    on TRUNCATE TABLE it implements reset_auto_increment that is called
    after delete_all_rows.
    
    Note: this bug was fixed by Mattias Jonsson:
    Pusing this patch: http://lists.mysql.com/commits/70370
    
    
    mysql-test/suite/parts/r/partition_auto_increment_memory.result:
      Bug#35111: Truncate a MyISAM partitioned table does not reset
      the auto_increment value
    mysql-test/suite/parts/r/partition_auto_increment_myisam.result:
      Bug#35111: Truncate a MyISAM partitioned table does not reset
      the auto_increment value
    sql/ha_partition.cc:
      Bug#35111: Truncate a MyISAM partitioned table does not reset
      the auto_increment value
      
      Added reset_auto_increment, to be used after delete_all_rows
      to simulate truncate.
    storage/heap/ha_heap.cc:
      Bug#35111: Truncate a MyISAM partitioned table does not reset
      the auto_increment value
      
      Added reset_auto_increment, to be used after delete_all_rows
      to simulate truncate
    storage/heap/ha_heap.h:
      Bug#35111: Truncate a MyISAM partitioned table does not reset
      the auto_increment value
      
      Added reset_auto_increment, to be used after delete_all_rows
      to simulate truncate
    storage/myisam/ha_myisam.cc:
      Bug#35111: Truncate a MyISAM partitioned table does not reset
      the auto_increment value
      
      Added reset_auto_increment, to be used after delete_all_rows
      to simulate truncate.
    storage/myisam/ha_myisam.h:
      Bug#35111: Truncate a MyISAM partitioned table does not reset
      the auto_increment value
      
      Added reset_auto_increment, to be used after delete_all_rows
      to simulate truncate.
    02e70f16
ha_heap.h 4.59 KB