diff options
author | unknown <bell@sanja.is.com.ua> | 2004-10-21 23:56:12 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-10-21 23:56:12 +0300 |
commit | e6e1600ec93ae95dbb17a9e462ca1abd7e715396 (patch) | |
tree | adba151b89c3f3b0d8b6812947bd34aa47f36a7d /sql/sql_cache.h | |
parent | ec8779e95a46b3dfff492196ad004cb2716df3c3 (diff) | |
download | mariadb-git-e6e1600ec93ae95dbb17a9e462ca1abd7e715396.tar.gz |
Check of temporary tables hiding for query fetched from QC (BUG#6084)
mysql-test/r/query_cache.result:
hiding real table stored in query cache by temporary table
mysql-test/t/query_cache.test:
hiding real table stored in query cache by temporary table
sql/sql_cache.cc:
Check of temporary tables hiding for query fetched from QC
sql/sql_cache.h:
Key length now stored in table record of query cache
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r-- | sql/sql_cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 0c6579250ab..454f0318c12 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -144,10 +144,13 @@ struct Query_cache_query struct Query_cache_table { char *tbl; + uint32 key_length; inline char *db() { return (char *) data(); } inline char *table() { return tbl; } inline void table(char *table) { tbl = table; } + inline uint32 key_len() { return key_length; } + inline void key_len(uint32 len) { key_length= len; } inline gptr data() { return (gptr)(((byte*)this)+ |