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

Bug#24289 Status Variable "Questions" gets wrong values with Stored Routines(for 5.1)

This commit is contained in:
Sergey Glukhov
2008-12-17 17:23:21 +04:00
parent d566770bf5
commit aae00014e2
7 changed files with 174 additions and 12 deletions

View File

@ -456,8 +456,15 @@ typedef struct system_status_var
ulong com_stmt_fetch;
ulong com_stmt_reset;
ulong com_stmt_close;
/*
Number of statements sent from the client
*/
ulong questions;
/*
IMPORTANT!
SEE last_system_status_var DEFINITION BELOW.
Below 'last_system_status_var' are all variables which doesn't make any
sense to add to the /global/ status variable counter.
Status variables which it does not make sense to add to
global status variable counter
*/
@ -470,7 +477,7 @@ typedef struct system_status_var
counter
*/
#define last_system_status_var com_stmt_close
#define last_system_status_var questions
void mark_transaction_to_rollback(THD *thd, bool all);