summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-06-29 13:49:50 +0500
committerunknown <ram@gw.mysql.r18.ru>2004-06-29 13:49:50 +0500
commitf9b7537eb6bf336df71893e5d7cdaeb645a04eac (patch)
tree8ca0126a14b1c813870c3fb45d1380748b45f63c /sql/handler.h
parent69d661724b5d765270c20f0de2ee3b004c7380ec (diff)
downloadmariadb-git-f9b7537eb6bf336df71893e5d7cdaeb645a04eac.tar.gz
a fix (bug #4304: TRUNCATE <table of type BDB> , wrong result).
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index fb728ef6999..431cf3f3f98 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -515,7 +515,8 @@ extern TYPELIB tx_isolation_typelib;
#define ha_commit(thd) (ha_commit_trans((thd), &((thd)->transaction.all)))
#define ha_rollback(thd) (ha_rollback_trans((thd), &((thd)->transaction.all)))
-#define ha_supports_generate(T) (T != DB_TYPE_INNODB)
+#define ha_supports_generate(T) (T != DB_TYPE_INNODB && \
+ T != DB_TYPE_BERKELEY_DB)
bool ha_caching_allowed(THD* thd, char* table_key,
uint key_length, uint8 cache_type);