diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2008-12-20 11:01:41 +0100 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2008-12-20 11:01:41 +0100 |
commit | cc958a18dd9554870edd3b1c6119edf72b661879 (patch) | |
tree | 36aa1edfd94289934ffa3aa66af64b899e9a9e77 /sql/sql_cursor.cc | |
parent | 602f612af09c3ccb6db19286291ae0bca403db5c (diff) | |
download | mariadb-git-cc958a18dd9554870edd3b1c6119edf72b661879.tar.gz |
Backport of DTrace patches from 6.0
Diffstat (limited to 'sql/sql_cursor.cc')
-rw-r--r-- | sql/sql_cursor.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/sql_cursor.cc b/sql/sql_cursor.cc index 7c530cb9013..1f6c9fdee53 100644 --- a/sql/sql_cursor.cc +++ b/sql/sql_cursor.cc @@ -19,6 +19,7 @@ #include "mysql_priv.h" #include "sql_cursor.h" #include "sql_select.h" +#include "probes_mysql.h" /**************************************************************************** Declarations. @@ -167,8 +168,14 @@ int mysql_open_cursor(THD *thd, uint flags, select_result *result, thd->lock_id= sensitive_cursor->get_lock_id(); thd->cursor= sensitive_cursor; } - + MYSQL_QUERY_EXEC_START(thd->query, + thd->thread_id, + (char *) (thd->db ? thd->db : ""), + thd->security_ctx->priv_user, + (char *) thd->security_ctx->host_or_ip, + 2); rc= mysql_execute_command(thd); + MYSQL_QUERY_EXEC_DONE(rc); lex->result= save_result; thd->lock_id= &thd->main_lock_id; |