diff options
author | Alexander Nozdrin <alik@sun.com> | 2009-11-05 11:40:01 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2009-11-05 11:40:01 +0300 |
commit | b30c1886dc52153009c2ea67878a9763448f461e (patch) | |
tree | 955f1a8f63b90129a273d30984825d62b46abaee /sql/sp_head.cc | |
parent | 7ed5c11c6a21aaf7d784f00adce47a0170b8f6a1 (diff) | |
parent | 7b4ef910f7830e85e2bc240b0803b994d6e0446b (diff) | |
download | mariadb-git-b30c1886dc52153009c2ea67878a9763448f461e.tar.gz |
Manual merge from mysql-5.1.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index aed19b76011..7c7a846f53e 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -2827,8 +2827,8 @@ sp_instr_stmt::execute(THD *thd, uint *nextp) DBUG_ENTER("sp_instr_stmt::execute"); DBUG_PRINT("info", ("command: %d", m_lex_keeper.sql_command())); - query= thd->query; - query_length= thd->query_length; + query= thd->query(); + query_length= thd->query_length(); #if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER) /* This s-p instr is profilable and will be captured. */ thd->profiling.set_query_source(m_query.str, m_query.length); @@ -2841,10 +2841,11 @@ sp_instr_stmt::execute(THD *thd, uint *nextp) queries with SP vars can't be cached) */ if (unlikely((thd->options & OPTION_LOG_OFF)==0)) - general_log_write(thd, COM_QUERY, thd->query, thd->query_length); + general_log_write(thd, COM_QUERY, thd->query(), thd->query_length()); if (query_cache_send_result_to_client(thd, - thd->query, thd->query_length) <= 0) + thd->query(), + thd->query_length()) <= 0) { res= m_lex_keeper.reset_lex_and_exec_core(thd, nextp, FALSE, this); |