summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
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_head.h
parentf183b1be31213982199b37d2c0cfdb1732e32568 (diff)
downloadmariadb-git-a78cc269472327e95c2c7ed0d233880a5207e373.tar.gz
prohibit opening Query cache for SP cursors (BUG#9715)
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r--sql/sp_head.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 49eabce246b..617d6622037 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -377,6 +377,10 @@ public:
return (uint)m_lex->sql_command;
}
+ void disable_query_cache()
+ {
+ m_lex->safe_to_cache_query= 0;
+ }
private:
LEX *m_lex;