diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2003-04-26 15:26:28 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2003-04-26 15:26:28 +0300 |
commit | 0c94064bbddde8358b9308f0b0f2ce10e971a35a (patch) | |
tree | 1d443ccbc69a259401b8fbbdce0a7e01e41f9db7 /sql/handler.h | |
parent | 18a321adce6f07c62fae971bf022316cc649cfba (diff) | |
parent | 68e1d7ad4219850e77b4d7979d8b6029bbabaed6 (diff) | |
download | mariadb-git-0c94064bbddde8358b9308f0b0f2ce10e971a35a.tar.gz |
merge fix
sql/handler.h:
Auto merged
sql/item.cc:
Auto merged
sql/item_strfunc.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/sql_lex.h:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_table.cc:
Auto merged
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 06c24214d0f..8c23a3625e0 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -117,6 +117,11 @@ #define HA_OPTION_NO_DELAY_KEY_WRITE (1L << 18) #define HA_MAX_REC_LENGTH 65535 +/* Table caching type */ +#define HA_CACHE_TBL_NONTRANSACT 0 +#define HA_CACHE_TBL_ASKTRANSACT 1 +#define HA_CACHE_TBL_TRANSACT 2 + enum db_type { DB_TYPE_UNKNOWN=0,DB_TYPE_DIAB_ISAM=1, DB_TYPE_HASH,DB_TYPE_MISAM,DB_TYPE_PISAM, DB_TYPE_RMS_ISAM, DB_TYPE_HEAP, DB_TYPE_ISAM, @@ -343,6 +348,16 @@ public: virtual THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type)=0; + + /* Type of table for caching query */ + virtual uint8 table_cache_type() { return HA_CACHE_TBL_NONTRANSACT; } + /* + Is query with this cable cachable (have sense only for ASKTRANSACT + tables) + */ + static bool caching_allowed(THD* thd, char* table_key, + uint key_length, uint8 cahe_type); + }; /* Some extern variables used with handlers */ |