mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
10.0-monty merge
includes: * remove some remnants of "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING" * introduce LOCK_share, now LOCK_ha_data is strictly for engines * rea_create_table() always creates .par file (even in "frm-only" mode) * fix a 5.6 bug, temp file leak on dummy ALTER TABLE
This commit is contained in:
commit
b7b5f6f1ab
1378 changed files with 124559 additions and 47549 deletions
|
|
@ -429,7 +429,7 @@ Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table,
|
|||
|
||||
key_info= event_table->key_info;
|
||||
|
||||
if (key_info->key_parts == 0 ||
|
||||
if (key_info->user_defined_key_parts == 0 ||
|
||||
key_info->key_part[0].field != event_table->field[ET_FIELD_DB])
|
||||
{
|
||||
/* Corrupted table: no index or index on a wrong column */
|
||||
|
|
@ -687,7 +687,7 @@ Event_db_repository::create_event(THD *thd, Event_parse_data *parse_data,
|
|||
if (create_if_not)
|
||||
{
|
||||
*event_already_exists= true;
|
||||
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE,
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE,
|
||||
ER_EVENT_ALREADY_EXISTS, ER(ER_EVENT_ALREADY_EXISTS),
|
||||
parse_data->name.str);
|
||||
ret= 0;
|
||||
|
|
@ -912,7 +912,7 @@ Event_db_repository::drop_event(THD *thd, LEX_STRING db, LEX_STRING name,
|
|||
goto end;
|
||||
}
|
||||
|
||||
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE,
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE,
|
||||
ER_SP_DOES_NOT_EXIST, ER(ER_SP_DOES_NOT_EXIST),
|
||||
"Event", name.str);
|
||||
ret= 0;
|
||||
|
|
@ -958,7 +958,7 @@ Event_db_repository::find_named_event(LEX_STRING db, LEX_STRING name,
|
|||
if (db.length > table->field[ET_FIELD_DB]->field_length ||
|
||||
name.length > table->field[ET_FIELD_NAME]->field_length ||
|
||||
table->s->keys == 0 ||
|
||||
table->key_info[0].key_parts != 2 ||
|
||||
table->key_info[0].user_defined_key_parts != 2 ||
|
||||
table->key_info[0].key_part[0].fieldnr != ET_FIELD_DB+1 ||
|
||||
table->key_info[0].key_part[1].fieldnr != ET_FIELD_NAME+1)
|
||||
DBUG_RETURN(TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue