mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
5.5 merge
This commit is contained in:
@@ -409,7 +409,6 @@ Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table,
|
||||
TABLE *event_table,
|
||||
const char *db)
|
||||
{
|
||||
int ret=0;
|
||||
CHARSET_INFO *scs= system_charset_info;
|
||||
KEY *key_info;
|
||||
uint key_len;
|
||||
@@ -419,7 +418,14 @@ Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table,
|
||||
DBUG_ENTER("Event_db_repository::index_read_for_db_for_i_s");
|
||||
|
||||
DBUG_PRINT("info", ("Using prefix scanning on PK"));
|
||||
event_table->file->ha_index_init(0, 1);
|
||||
|
||||
int ret= event_table->file->ha_index_init(0, 1);
|
||||
if (ret)
|
||||
{
|
||||
event_table->file->print_error(ret, MYF(0));
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
|
||||
key_info= event_table->key_info;
|
||||
|
||||
if (key_info->key_parts == 0 ||
|
||||
|
Reference in New Issue
Block a user