mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
wl#1629 SHOW with WHERE(final part, after review)
added syntax: 'show variables where', 'show status where', 'show open tables where'
This commit is contained in:
@ -3716,8 +3716,12 @@ choose_plan(JOIN *join, table_map join_tables)
|
||||
}
|
||||
}
|
||||
|
||||
/* Store the cost of this query into a user variable */
|
||||
last_query_cost= join->best_read;
|
||||
/*
|
||||
Store the cost of this query into a user variable
|
||||
Don't update last_query_cost for 'show status' command
|
||||
*/
|
||||
if (join->thd->lex->orig_sql_command != SQLCOM_SHOW_STATUS)
|
||||
last_query_cost= join->best_read;
|
||||
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
Reference in New Issue
Block a user