mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge osalerma@bk-internal.mysql.com:/home/bk/mysql-5.0
into 127.(none):/home/osku/mysql-5.0
This commit is contained in:
@ -6888,6 +6888,28 @@ ha_innobase::get_auto_increment()
|
||||
return((ulonglong) nr);
|
||||
}
|
||||
|
||||
/* See comment in handler.h */
|
||||
int
|
||||
ha_innobase::reset_auto_increment()
|
||||
{
|
||||
DBUG_ENTER("ha_innobase::reset_auto_increment");
|
||||
|
||||
row_prebuilt_t* prebuilt = (row_prebuilt_t*) innobase_prebuilt;
|
||||
int error;
|
||||
|
||||
error = row_lock_table_autoinc_for_mysql(prebuilt);
|
||||
|
||||
if (error != DB_SUCCESS) {
|
||||
error = convert_error_code_to_mysql(error, user_thd);
|
||||
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
dict_table_autoinc_initialize(prebuilt->table, 0);
|
||||
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
Compares two 'refs'. A 'ref' is the (internal) primary key value of the row.
|
||||
If there is no explicitly declared non-null unique key or a primary key, then
|
||||
|
Reference in New Issue
Block a user