summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-07-12 11:25:01 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2013-07-12 11:25:01 +0200
commit0eaa7c2f7170d1dec954eb00d239e192af58a758 (patch)
tree9a3d1fbe6b8edda90e62721ef41982771ca29d25
parent12f3cb01e9e32516564101795c8bf17a7cb4b5cc (diff)
downloadmariadb-git-0eaa7c2f7170d1dec954eb00d239e192af58a758.tar.gz
- CONNECT not should use query cache because working on
external data prone to be modified out of MariaDB modified: storage/connect/ha_connect.h
-rw-r--r--storage/connect/ha_connect.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/storage/connect/ha_connect.h b/storage/connect/ha_connect.h
index abf82b2d1a8..8ebc19e0efc 100644
--- a/storage/connect/ha_connect.h
+++ b/storage/connect/ha_connect.h
@@ -310,6 +310,21 @@ const char *GetValStr(OPVAL vop, bool neg);
*/
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
We implement this in ha_connect.cc; it's a required method.
*/