diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-17 17:23:21 +0400 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-17 17:23:21 +0400 |
commit | 952d284ba4617958840005d314ae8d19428df1c3 (patch) | |
tree | 72bde7f393958ae287e171c58530151b07acb72a /sql/sql_class.h | |
parent | 0077ba49400a58e2b35181f8b9d6e78314a9b36f (diff) | |
download | mariadb-git-952d284ba4617958840005d314ae8d19428df1c3.tar.gz |
Bug#24289 Status Variable "Questions" gets wrong values with Stored Routines(for 5.1)
mysql-test/r/myisampack.result:
result fix
mysql-test/t/myisampack.test:
test case fix
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index f5cf31d1030..96b73ea76a2 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -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); |