summaryrefslogtreecommitdiff
path: root/sql/sp_rcontext.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2005-06-14 22:45:48 +0300
committerbell@sanja.is.com.ua <>2005-06-14 22:45:48 +0300
commita78cc269472327e95c2c7ed0d233880a5207e373 (patch)
tree245f09eed7f3ce616ac752aa5162da8e79937ba0 /sql/sp_rcontext.cc
parentf183b1be31213982199b37d2c0cfdb1732e32568 (diff)
downloadmariadb-git-a78cc269472327e95c2c7ed0d233880a5207e373.tar.gz
prohibit opening Query cache for SP cursors (BUG#9715)
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r--sql/sp_rcontext.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc
index 61cd7a9300f..aacb9254753 100644
--- a/sql/sp_rcontext.cc
+++ b/sql/sp_rcontext.cc
@@ -169,6 +169,17 @@ sp_rcontext::pop_cursors(uint count)
*
*/
+sp_cursor::sp_cursor(sp_lex_keeper *lex_keeper)
+ :m_lex_keeper(lex_keeper), m_prot(NULL), m_isopen(0), m_current_row(NULL)
+{
+ /*
+ currsor can't be stored in QC, so we should prevent opening QC for
+ try to write results which are absent.
+ */
+ lex_keeper->disable_query_cache();
+}
+
+
/*
pre_open cursor