1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#41131 "Questions" fails to increment - ignores statements instead stored procs(5.0 ver)

Added global status variable 'Queries' which represents
total amount of queries executed by server including
statements executed by SPs.
note: It's old behaviour of 'Questions' variable.
This commit is contained in:
Sergey Glukhov
2008-12-29 16:06:53 +04:00
parent a31795b82d
commit f67ce47617
5 changed files with 66 additions and 1 deletions

View File

@ -1543,6 +1543,9 @@ static bool show_status_array(THD *thd, const char *wild,
nr= (long) (thd->query_start() - server_start_time);
end= int10_to_str(nr, buff, 10);
break;
case SHOW_QUERIES:
end= int10_to_str((long) thd->query_id, buff, 10);
break;
#ifdef HAVE_REPLICATION
case SHOW_RPL_STATUS:
end= strmov(buff, rpl_status_type[(int)rpl_status]);