diff options
author | magnus@neptunus.(none) <> | 2004-08-04 11:28:36 +0200 |
---|---|---|
committer | magnus@neptunus.(none) <> | 2004-08-04 11:28:36 +0200 |
commit | d526f3277e223be3b3741f04e925b2c7ee75a76e (patch) | |
tree | 39130a79f04ed16342a5921f116d38f1145628ed /sql/handler.h | |
parent | 1c65da2cbcd23c6dcd41a95997c1383e9b038dc0 (diff) | |
download | mariadb-git-d526f3277e223be3b3741f04e925b2c7ee75a76e.tar.gz |
BUG#4892 TRUNCATE TABLE returns error 156
Added NDBCLUSTER to table types which does not support generate.
Added test case for truncate.
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 3 |
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); |