summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <magnus@neptunus.(none)>2004-08-04 11:28:36 +0200
committerunknown <magnus@neptunus.(none)>2004-08-04 11:28:36 +0200
commit94a1e48232184a25837e49fc01120228e5ff7860 (patch)
tree39130a79f04ed16342a5921f116d38f1145628ed /sql/handler.h
parent92498f81dbc94cd9327b431f4456e17fc8dddb8f (diff)
downloadmariadb-git-94a1e48232184a25837e49fc01120228e5ff7860.tar.gz
BUG#4892 TRUNCATE TABLE returns error 156
Added NDBCLUSTER to table types which does not support generate. Added test case for truncate. sql/handler.h: Add NDBCLUSTER to table types that does not support generate.
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 28b0b8df6e2..3dd89a0c5d0 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -516,7 +516,8 @@ extern TYPELIB tx_isolation_typelib;
#define ha_rollback(thd) (ha_rollback_trans((thd), &((thd)->transaction.all)))
#define ha_supports_generate(T) (T != DB_TYPE_INNODB && \
- T != DB_TYPE_BERKELEY_DB)
+ T != DB_TYPE_BERKELEY_DB && \
+ T != DB_TYPE_NDBCLUSTER)
bool ha_caching_allowed(THD* thd, char* table_key,
uint key_length, uint8 cache_type);