diff options
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 148801f8fe7..434c6f71346 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1690,6 +1690,8 @@ public: virtual ~handler_add_index() {} }; +class Query_cache; +struct Query_cache_block_table; /** The handler class is the interface for dynamically loadable storage engines. Do not add ifdefs and take care when adding or @@ -2523,6 +2525,46 @@ public: return TRUE; } + /* + Count tables invisible from all tables list on which current one built + (like myisammrg and partitioned tables) + + tables_type mask for the tables should be added herdde + + returns number of such tables + */ + + virtual uint count_query_cache_dependant_tables(uint8 *tables_type + __attribute__((unused))) + { + return 0; + } + + /* + register tables invisible from all tables list on which current one built + (like myisammrg and partitioned tables). + + @note they should be counted by method above + + cache Query cache pointer + block Query cache block to write the table + n Number of the table + + @retval FALSE - OK + @retval TRUE - Error + */ + + virtual my_bool + register_query_cache_dependant_tables(THD *thd + __attribute__((unused)), + Query_cache *cache + __attribute__((unused)), + Query_cache_block_table **block + __attribute__((unused)), + uint *n __attribute__((unused))) + { + return FALSE; + } /* Check if the primary key (if there is one) is a clustered and a |