• unknown's avatar
    Fix bug #11946, truncate not always resetting the auto-increment counter · fa31a995
    unknown authored
    in InnoDB tables.
    
    
    mysql-test/r/innodb.result:
      New tests.
    mysql-test/t/innodb.test:
      New tests.
    sql/ha_innodb.cc:
      Add reset_auto_increment.
    sql/ha_innodb.h:
      Add reset_auto_increment.
    sql/handler.h:
      Add reset_auto_increment.
    sql/sql_delete.cc:
      Call handler->reset_auto_increment when needed.
    fa31a995
ha_innodb.cc 213 KB