From c414f138c7de8c6f57fa1a75e1e4e01c8dcfdc8c Mon Sep 17 00:00:00 2001 From: "marko@hundin.mysql.fi" <> Date: Thu, 13 Jan 2005 15:14:11 +0200 Subject: [PATCH] row0mysql.c: row_truncate_table_for_mysql(): Reset the auto_increment counter. --- innobase/row/row0mysql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c index 67477b36a05..a9b9d096e6b 100644 --- a/innobase/row/row0mysql.c +++ b/innobase/row/row0mysql.c @@ -2683,6 +2683,7 @@ fputs(" InnoDB: Unable to assign a new identifier to table ", stderr); dict_table_change_id_in_cache(table, new_id); } + dict_table_autoinc_initialize(table, 0); dict_update_statistics(table); trx_commit_for_mysql(trx);