summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorunknown <bell@laptop.sanja.is.com.ua>2003-10-02 12:02:05 +0300
committerunknown <bell@laptop.sanja.is.com.ua>2003-10-02 12:02:05 +0300
commitf1666943c0a8ddfb37da301529c1025c019d82d8 (patch)
tree65e9e01201a41dfe445d5a8acac2c102bcac5a01 /sql/mysql_priv.h
parent8094305c86f7785b18b453298f781bfff7c7550e (diff)
downloadmariadb-git-f1666943c0a8ddfb37da301529c1025c019d82d8.tar.gz
Structure for storing parameters of query in query cache (asked by Bar)
sql/mysql_priv.h: Structure for storing parameters of query in query cache sql/sql_cache.cc: Structure for storing parameters of query in query cache sql/sql_parse.cc: Structure for storing parameters of query in query cache
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index e5ad15e1d0e..cf844dbd2aa 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -322,6 +322,13 @@ typedef compare_func_creator (*chooser_compare_func_creator)(bool invert);
#include "opt_range.h"
#ifdef HAVE_QUERY_CACHE
+struct Query_cache_query_flags
+{
+ unsigned int client_long_flag:1;
+ uint charset_num;
+ ha_rows limit;
+};
+#define QUERY_CACHE_FLAGS_SIZE sizeof(Query_cache_query_flags)
#include "sql_cache.h"
#define query_cache_store_query(A, B) query_cache.store_query(A, B)
#define query_cache_destroy() query_cache.destroy()
@@ -335,6 +342,7 @@ typedef compare_func_creator (*chooser_compare_func_creator)(bool invert);
#define query_cache_invalidate_by_MyISAM_filename_ref \
&query_cache_invalidate_by_MyISAM_filename
#else
+#define QUERY_CACHE_FLAGS_SIZE 0
#define query_cache_store_query(A, B)
#define query_cache_destroy()
#define query_cache_result_size_limit(A)