Commit 0eaa7c2f authored by Olivier Bertrand's avatar Olivier Bertrand

- CONNECT not should use query cache because working on

  external data prone to be modified out of MariaDB

modified:
  storage/connect/ha_connect.h
parent 12f3cb01
...@@ -310,6 +310,21 @@ const char *GetValStr(OPVAL vop, bool neg); ...@@ -310,6 +310,21 @@ const char *GetValStr(OPVAL vop, bool neg);
*/ */
virtual ha_rows records(); virtual ha_rows records();
/**
Type of table for caching query
CONNECT should not use caching because its tables are external
data prone to me modified out of MariaDB
*/
virtual uint8 table_cache_type(void)
{
#if defined(MEMORY_TRACE)
// Temporary until bug MDEV-4771 is fixed
return HA_CACHE_TBL_NONTRANSACT;
#else
return HA_CACHE_TBL_NOCACHE;
#endif
}
/** @brief /** @brief
We implement this in ha_connect.cc; it's a required method. We implement this in ha_connect.cc; it's a required method.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment