summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2003-06-07 19:08:17 +0300
committerSinisa@sinisa.nasamreza.org <>2003-06-07 19:08:17 +0300
commita65730cb5e9fdf6287d216b76e33a6efae34fb90 (patch)
treef0816ffb024286d3faa8740cb6d67e5bb896c274
parent7c6522a74ed868e6b67577ebdaa0b1675ac7890b (diff)
downloadmariadb-git-a65730cb5e9fdf6287d216b76e33a6efae34fb90.tar.gz
Small omition when Innodb handler is not included.
-rw-r--r--sql/handler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 762e07eec64..27549aaabb6 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -880,10 +880,12 @@ int handler::delete_all_rows()
bool handler::caching_allowed(THD* thd, char* table_key,
uint key_length, uint8 cache_type)
{
+#ifdef HAVE_INNOBASE_DB
if (cache_type == HA_CACHE_TBL_ASKTRANSACT)
return innobase_query_caching_of_table_permitted(thd, table_key,
key_length);
else
+#endif
return 1;
}