mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
SHOW STATUS does not anymore change local status variables (except com_show_status). Global status variables are still updated.
SHOW STATUS are not anymore put in slow query log because of no index usage. Implemntation done by removing orig_sql_command and moving logic of SHOW STATUS to mysql_excute_command() This simplifies code and allows us to remove some if statements all over the code. Upgraded uc_update_queries[] to sql_command_flags and added more bitmaps to better categorize commands. This allowed some overall simplifaction when testing sql_command. Fixes bugs: Bug#10210: running SHOW STATUS increments counters it shouldn't Bug#19764: SHOW commands end up in the slow log as table scans
This commit is contained in:
@@ -1050,6 +1050,7 @@ Qcache_hits 1
|
||||
drop table t1;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1),(2);
|
||||
drop procedure if exists p1;
|
||||
CREATE PROCEDURE `p1`()
|
||||
begin
|
||||
Declare c1 cursor for select a from t1;
|
||||
|
||||
Reference in New Issue
Block a user