1
0
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:
gluh@gluh.mysql.r18.ru
2004-12-30 15:20:40 +03:00
parent 043c1d3280
commit 50266af38c
14 changed files with 202 additions and 306 deletions

View File

@ -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;
}