mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Merge from mysql-5.1-security to mysql-5.5-security
This commit is contained in:
commit
3bdaf40569
3 changed files with 5 additions and 5 deletions
|
@ -6220,8 +6220,8 @@ create_table_def(
|
|||
push_warning_printf(
|
||||
(THD*) trx->mysql_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
ER_TABLE_NAME,
|
||||
"InnoDB: Failed to create table %s. Table Name"
|
||||
" or Database Name is too long", table_name);
|
||||
"InnoDB: Table Name or Database Name is too long");
|
||||
|
||||
DBUG_RETURN(ER_TABLE_NAME);
|
||||
}
|
||||
|
||||
|
|
|
@ -759,7 +759,7 @@ fill_innodb_locks_from_cache(
|
|||
for (i = 0; i < rows_num; i++) {
|
||||
|
||||
i_s_locks_row_t* row;
|
||||
char buf[MAX_FULL_NAME_LEN];
|
||||
char buf[MAX_FULL_NAME_LEN + 1];
|
||||
const char* bufend;
|
||||
|
||||
char lock_trx_id[TRX_ID_MAX_LEN + 1];
|
||||
|
|
|
@ -2364,7 +2364,7 @@ row_merge_rename_tables(
|
|||
{
|
||||
ulint err = DB_ERROR;
|
||||
pars_info_t* info;
|
||||
char old_name[MAX_TABLE_NAME_LEN + 1];
|
||||
char old_name[MAX_FULL_NAME_LEN + 1];
|
||||
|
||||
ut_ad(trx->mysql_thread_id == os_thread_get_curr_id());
|
||||
ut_ad(old_table != new_table);
|
||||
|
@ -2379,7 +2379,7 @@ row_merge_rename_tables(
|
|||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr, "InnoDB: too long table name: '%s', "
|
||||
"max length is %d\n", old_table->name,
|
||||
MAX_TABLE_NAME_LEN);
|
||||
MAX_FULL_NAME_LEN);
|
||||
ut_error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue