diff options
author | unknown <thek@adventure.(none)> | 2007-05-08 11:24:07 +0200 |
---|---|---|
committer | unknown <thek@adventure.(none)> | 2007-05-08 11:24:07 +0200 |
commit | 2c3a4641077264b54f894782170ba58129ee547f (patch) | |
tree | aed0bdd6b0644b860e30dbbe021221fe804abe48 /sql/set_var.cc | |
parent | 625c2b1de2049b117c003453e41693a156f35255 (diff) | |
download | mariadb-git-2c3a4641077264b54f894782170ba58129ee547f.tar.gz |
4.1 -> 5.0 Manual merge for Bug #27792
mysql-test/r/query_cache.result:
Added 5.0 testcase
mysql-test/t/query_cache.test:
Added 5.0 test case
sql/mysql_priv.h:
Added support for div_precision_increment
sql/set_var.cc:
- Added query cache flush when system variable ft_boolean_syntax is
updated since this also invalidates all cached result sets using this
variable.
sql/sql_cache.cc:
- Added the local system variable div_precision_increment as an identification flag
for cached queries.
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index c7eddcdd317..1952ae9e7c6 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -1200,6 +1200,11 @@ static bool sys_update_ftb_syntax(THD *thd, set_var * var) { strmake(ft_boolean_syntax, var->value->str_value.c_ptr(), sizeof(ft_boolean_syntax)-1); + +#ifdef HAVE_QUERY_CACHE + query_cache.flush(); +#endif /* HAVE_QUERY_CACHE */ + return 0; } |