diff options
author | Kristofer Pettersson <kristofer.pettersson@sun.com> | 2008-10-09 09:26:42 +0200 |
---|---|---|
committer | Kristofer Pettersson <kristofer.pettersson@sun.com> | 2008-10-09 09:26:42 +0200 |
commit | 218c4e15fcd1bef14484d0f4e22e6b52d703a146 (patch) | |
tree | ed1de81ea71bd5053e787bd3e804bcc5c0c9d4ec /sql/sql_show.cc | |
parent | e59a03616599a84def4a0e6be6aee53d6d618c61 (diff) | |
download | mariadb-git-218c4e15fcd1bef14484d0f4e22e6b52d703a146.tar.gz |
Bug#24289 Status Variable "Questions" gets wrong values with Stored Routines
When running Stored Routines the Status Variable "Questions" was wrongly
incremented. According to the manual it should contain the "number of
statements that clients have sent to the server"
Introduced a new status variable 'questions' to replace the query_id
variable which currently corresponds badly with the number of statements
sent by the client.
The new behavior is ment to be backward compatible with 4.0 and at the
same time work with new features in a similar way.
This is a backport from 6.0
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index c30e0a00d95..d6854e00228 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -1520,9 +1520,6 @@ 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_QUESTION: - 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]); |