mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Bug #11946: Review fixes.
sql/ha_innodb.cc: Add 'value' parameter to reset_auto_increment. sql/ha_innodb.h: Add 'value' parameter to reset_auto_increment. sql/handler.h: Add 'value' parameter to reset_auto_increment. sql/mysql_priv.h: Add 'reset_auto_increment' parameter to mysql_delete. sql/sql_delete.cc: Add 'reset_auto_increment' parameter to mysql_delete, and use it instead of checking for SQLCOM_TRUNCATE. mysql_truncate: Adapt to changes in mysql_delete. sql/sql_parse.cc: mysql_execute_command: Adapt to changes in mysql_delete.
This commit is contained in:
parent
b3dcaff948
commit
c12a760ce9
6 changed files with 21 additions and 17 deletions
|
|
@ -6890,7 +6890,7 @@ ha_innobase::get_auto_increment()
|
|||
|
||||
/* See comment in handler.h */
|
||||
int
|
||||
ha_innobase::reset_auto_increment()
|
||||
ha_innobase::reset_auto_increment(ulonglong value)
|
||||
{
|
||||
DBUG_ENTER("ha_innobase::reset_auto_increment");
|
||||
|
||||
|
|
@ -6905,7 +6905,7 @@ ha_innobase::reset_auto_increment()
|
|||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
dict_table_autoinc_initialize(prebuilt->table, 0);
|
||||
dict_table_autoinc_initialize(prebuilt->table, value);
|
||||
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue