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
commit1e8251ac679cce3e9e10712e5d116f91ebdfc7c3 (patch)
tree8ca0126a14b1c813870c3fb45d1380748b45f63c /sql/handler.h
parent7e970e35a694f235c866e40182269bf87b6d6e09 (diff)
downloadmariadb-git-1e8251ac679cce3e9e10712e5d116f91ebdfc7c3.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);